Solved

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

Posted on 2008-06-24
2
2,171 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
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…

808 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