How to give user access to WU-FTP without giving access to rest of file system

We have a user who we want to give read/write access to a directory we host via WU-FTP.  We setup WU-FTP, set the users home directory to the ftp directory, gave the user read/write access and anonymous read only access.  The problem is the user can traverse the filesystem.  Is there a way to stop this while still giving the user read/write to the FTP server?

Server is Red Hat Ent 3.0, WU-FTP2.6.2-12

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


   You need to use guset-ftp (not anonymous ftp) model in wu-ftp.
Check the following URL:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You want to chroot your users in their own directory (ie block them to get outside it):

in /etc/passwd, check concerned user line:
user1:*:403:400:Description of User1:/home/ftp/user1/:/etc/ftponly

change it to:
user1:*:403:400:Description of User1:/home/ftp/user1/./:/etc/ftponly
(Notice the /. added at end of user directory)

This will ensure that the user is staying inside his own space.

Hope this helps.
rbowen00Author Commented:

  I couldn't get the solution you provided to work. I tried both a /. and a ./ at the end of the user directory.  The account can still traverse directories.  I'm running a standard install, could it be something that needs to be changed?


Hi rbowen00,

   Please read the following URL carefully:

   It's not just do what deurk's suggestion. You need to do more than that.

You could also give a try at pure-ftpd which is easier to administer and maintain (allowing that kind of configuration really easily)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Security

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.