Solved

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

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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…

631 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