Solved

How to allow chrooted ftp user (real user) on Solaris 10  to cd to sub-directories

Posted on 2008-06-24
2
2,157 Views
Last Modified: 2013-12-21
I have a chrooted ftp user with sub-directories below the chrooted directory. I would like to be able to start an FTP session, cd to to one of the subdirectories and then get or put a file, also to issue ls to see what is inthe directory.

I've added the user to guestuser and to restricted-uid in /etc/ftpd/ftpaccess and have specified the home directory to chroot to in /etc/passwd.

Currently I am able to FTP in to the chrooted hme directory but can not see or move to the sub-directories.
0
Comment
Question by:SRLUM
2 Comments
 
LVL 22

Accepted Solution

by:
blu earned 50 total points
Comment Utility
Have you set up the directory as a chrooted directory structure, with a /etc and /lib, and such? One thing to do, is connect as the guest user, then once you try something that doesn't work that you think should work, then (As root) run the truss command like this: "truss -f -p `pgrep in.ftpd`" and while the truss is running, issue the same command again. This output from truss should show you why the command is failing.
0
 

Author Closing Comment

by:SRLUM
Comment Utility
Well the underlying problem was a typo in a path (arent they always) but I'd not have spotted it without the output from truss.
Thanks for your help
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Over the past decade, as Internet security has become a chief concern of IT professionals, one of the most common questions administrators and users ask is, “Which is more secure, SFTP or FTPS?” In short, both file transfer protocols offer a high…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now