Solved

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

Posted on 2008-06-24
2
2,184 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
File path is too long...over 255 8 131
Peer-to-Peer file sharing Windows 10 Home 4 129
map dropbox drive 3 90
remove one line from a file in solaris 8 65
Cloud file services can fill many different roles for your business. Often, the use of cloud file services begins with employees using consumer products, like Dropbox, to share files with customers and each other. While sync-and-share can be an effe…
Many of the companies I’ve worked with have embraced cloud solutions due to their desire to “get out of the datacenter business.” The ability to achieve better security and availability, and the speed with which they are able to deploy, is far grea…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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…

742 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