How Do I Limit Directory Browsing?

Hi.

I have wu-ftpd setup on my box.  I have created a handful of FTP users.  For better or worse, each user is a member of the same "FTP" group.  When each respective user logs in, they chroot to their home ftp directory.  I noticed that one user can change into another user's directory and other "sensitive" areas of the filesystem.  How do I restrict each user from having this ability.  I want them to be restricted to their respective home FTP directories.  
p_guruleAsked:
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.

bernardhCommented:
Edit your /etc/ftpaccess file and add:

     guestgroup ftp

Edit your /etc/shells file and add the dummy shell:

     /bin/ftponly

Finally edit your /etc/passwd file and modify the login name of the user:
  guest1:<passwd>:100:92:Guest:/home/guest1/./incoming:/bin/ftponly

guest1 will be able to access only his home directory /home/guest1 and /home/guest1/incoming. The home directory field of the passwd entry is divided into  two  directories.   The first field  is  the  root directory which will be the argument to the chroot(2) call.  The second  half  is  the  user's  home directory  relative  to  the root directory.  The two halves are separated by a "/./"
0

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
EatEmAndSmileCommented:
Just take away permissions of reading and execution for the "others" group in your critical directories. Like:

 cd /home/ftp

 chmod o-rx bin
 chmod o-rx lib
0
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

From novice to tech pro — start learning today.