View Full Version : [ubuntu] Restricting Users SFTP
zemon_
May 8th, 2009, 03:43 PM
Im running ubuntu server 8.10 with vsftpd.
I want to restrict users to there home directory.
This is what I tried
nano /etc/vsftpd.conf
Then uncommented this line
chroot_local_user=YES
/etc/init.d/vsftpd restart
Any ideas what im doing wrong?
Alekz_
May 8th, 2009, 04:11 PM
Im running ubuntu server 8.10 with vsftpd.
I want to restrict users to there home directory.
This is what I tried
nano /etc/vsftpd.conf
Then uncommented this line
chroot_local_user=YES
/etc/init.d/vsftpd restart
Any ideas what im doing wrong?
Hi zemon_
Try this:
Edit the /etc/vsftpd.conf file with these lines:
chroot_list_enable=yes
chroot_list_file=/etc/vsftpd.chroot_list
You have to create the /etc/vsftpd.chroot_list file with the users you want to restrict access.
zemon_
May 8th, 2009, 04:22 PM
Yes I tried that also , but does not work I can still login as restricted user and view all the other files
Alekz_
May 8th, 2009, 04:27 PM
Oh! I forgot to mension...
If you're are using the
chroot_list_enable=yes
chroot_list_file=/etc/vsftpd.chroot_list
then you must set
chroot_local_user=no
They have opposite effect! :)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.