500 OOPS: cannot change directory:/srv/ftp/job06 Crap!
My guess is that it is either a simple directory owner, group, or mode problem, or else I'm missing something in vsftpd.conf
So, starting from the beginning:
I'm a business. For each of my contracts I need an FTP share for a team of consultants.
Each member of the team gets their own directory inside a shared chroot jail.
I'm using --passwd_chroot_enable in vsftpd.conf so that I can specify the chroot jail location on a per-user basis by editing the home directory path for each user in the passwd file - has anyone here used this?
Now... I can verify that I can connect to FTP with my own personal account (different from my account for the project team below), so I know that vsftpd is up and running and taking connections. I have excepted my personal account from chroot_local_user by listing myself in chroot_list_enable and that is all working fine. I have also created another "normal" user called "dummy" and dummy can connect and is chrooted to his own directory, so I've got the chroot parameters set up correctly, at least for normal users. So here's the rest of the setup:
FTP root: /srv/ftp
Shared chroot jail: /srv/ftp/job06013
Member directories in that jail: arch, mep (that's all for now, will add more when I get this working)
My user account happens to be "arch"
I've created a group for this project team called "ftp06013" and I've added the users to that group and assigned the directories for the ftp share to that group (output of ls -l shown below for each directory).
So, for "arch" the passwd file says:
where the /./ specifies that the chroot jail is job06013/
Directory owner, group, permissions (permissions for all the below are 650):
drw-r-x--- 4 arch ftp06013 4096 2011-03-02 10:48 job06013
for the two directories inside job06013:
drw-r-x--- 2 arch ftp06013 4096 2011-03-01 12:50 arch
drw-r-x--- 2 mep ftp06013 4096 2011-03-01 12:24 mep
- Code: Select all
#ftpd_banner=Welcome to blah FTP service.
# The above are all "from the factory" directives
# although some have been changed from their default values.
# and some have been un-commented.
# The below are added directives.
Here's the passwd file:
- Code: Select all
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
dovecot:x:104:111:Dovecot mail server,,,:/usr/lib/dovecot:/bin/false
I think that's everything. Hopefully I edited out all the sensitive stuff without mucking anything up. Any advice is much appreciated.