Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vsftpd 1

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
does anyone know how to configure vsftpd so users cannot browse outside of their home directory?
 
you could change file permissions across the system to 700 (owner: read/write/execute; groups: no access; users: no access).

of course, root will ALWAYS have access to the files, irrelevant of these permissions.

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
Sure, do the following:

1) cd /etc/vsftpd
2) vi vsftpd.conf
3) Uncomment chroot_list_enable=YES
4) Insert chroot_local_user=NO below that
5) Uncomment chroot_list_file=/etc/vsftpd.chroot_list
6) Create a list in /etc of the names you want restricted to their home directories and name it vsftpd.chroot_list


This should be what you are asking for...
 
Oh and one other thing, make sure you stop and start the vsftp daemon as well. If you are on Redhat, it is simply:

# service vsftpd stop
# service vsftpd start
 
did the trick, i overloked that option, thanks much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top