I'm testing a Debian Lenny virtual machine to simulate my ideal setup for FTP server (with vsftpd): I want all internal users (corporation users with Active Directory accounts) to ftp into the same directory (i.e.
/var/FTP/AD-DOMAIN/) and external users (customers) to ftp into their home directories (created manually on request).
I added
user_config_dir=/etc/vsftpd_user_conf option in
/etc/vsftpd.conf file and I've created
/etc/vsftpd_user_conf/domain-user1 with
local_root=/var/FTP/AD-DOMAIN
I have setup vsftp so I can ftp with every external and internal user chrooted and is working properly. AD validation for internal users and "normal" validation (via
/etc/passwd) for external users work perfect.
I can FTP this server into
/var/FTP/AD-DOMAIN with any AD user with its home directory created (i.e.
/home/AD-DOMAIN/domain-user1/) but if I try to ftp with any AD user without its home directory created I get the error "
500 OOPS: cannot change directory:/home/AD-DOMAIN/domain-user2"
I have found some references (
http://wiki.flexion.org/FtpServer.html and
http://howto.gumph.org/content/setup...ies-in-vsftpd/) about vsftp PAM authentication so I would supposedly get rid of the error message and the user would log into
/var/FTP/AD-DOMAIN without problems, but I can't figure out how to setup my FTP server.
Any help would be greatly appreciated. Thanks in advance!