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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vsFTPd users

Status
Not open for further replies.

bigbadaboom

Programmer
Mar 25, 2004
1
DE
Hi! I'm using Suse 9.0 and vsftpd.
I'd like to make a user that only has access to one certain directory and all its subdirectories. How do I do this?

Thanks a lot in advace! :)
 
From the stock /etc/vsftpd.conf

# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_local_user=YES
chroot_list_enable=NO
# (default follows)
chroot_list_file=/etc/vsftpd/chroot-list

And this is deviously hidden in the manpage for vsftpd.conf

chroot_list_enable
If activated, you may provide a list of local users who are
placed in a chroot() jail in their home directory upon login.
The meaning is slightly different if chroot_local_user is set to
YES. In this case, the list becomes a list of users which are
NOT to be placed in a chroot() jail. By default, the file conâ
taining this list is /etc/vsftpd/chrootâlist, but you may overâ
ride this with the chroot_list_file setting.

Default: NO

chroot_local_user
If set to YES, local users will be placed in a chroot() jail in
their home directory after login. Warning: This option has
security implications, especially if the users have upload perâ
mission, or shell access. Only enable if you know what you are
doing. Note that these security implications are not vsftpd
specific. They apply to all FTP daemons which offer to put local
users in chroot() jails.

Default: NO
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top