Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-06-24
2
Medium Priority
?
2,204 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:
Brian Utterback earned 200 total points
ID: 21856617
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
ID: 31470136
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Suggested Courses
Course of the Month11 days, 8 hours left to enroll

916 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