Welcome to WebmasterWorld Guest from 3.209.80.87

Forum Moderators: bakedjake

Message Too Old, No Replies

VSFTPD and Chroot Jails

vsftpd,chroot,chroot_local_user

     
11:49 am on Jun 22, 2007 (gmt 0)

New User

10+ Year Member

joined:June 22, 2007
posts:1
votes: 0


I'm responding because I could not find this information elsewhere.

As quoted from long ago:
I'm setting up vsftpd for my site, and I want both local and anonymous logins. The only difference between anonymous and local logins should be the permissions associated with files and directories. Specifically, local users should be able to upload files, while anonymous users should not. The problem I am having is that by default, when the local users log in, they are chrooted to their /home/local_user directory. I thought that this was the purpose of the chroot_local_user directive, but setting this to YES or NO doesn't seem to change anything. So, my question is: Is the default behavior for vsftpd to chroot local users to the directory specified in /etc/passwd? If so, is there any way to change it to another directory without changing /etc/passwd? Is this behavior shared across all ftp servers, or just vsftpd?
Oops, looks like that was actually 3 questions. Oh well. Thanks in advance for any help.

I found out that most of the information provided is correct. However if you enable guest logins with guest_enable=YES in your vsftpd.conf then the system will default to jailing all users in the ftp directory.

I posted this hoping someone else wouldnt have to go through the vsftpd torment :)

re: [webmasterworld.com...]
That's a link from this website, not one of mine :)