Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-03-2009, 11:36 AM   #1
LQ Newbie
Registered: Jul 2005
Location: Spain
Distribution: OpenSuSE 11.1
Posts: 14

Rep: Reputation: 0
How to setup vsftpd with AD users without home directories created?

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 ( and 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!

Last edited by Xnake; 07-03-2009 at 12:53 PM.
Old 07-06-2009, 06:28 AM   #2
LQ Newbie
Registered: Jul 2005
Location: Spain
Distribution: OpenSuSE 11.1
Posts: 14

Original Poster
Rep: Reputation: 0
I finally configured /etc/samba/smb.conf with template homedir = /var/FTP/AD-DOMAIN so every AD user will be placed in that directory. External users will be placed in their home directories.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd - Need one user who can write to all other users directories rickpond Linux - Newbie 14 03-03-2009 08:14 PM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 07:29 AM
home directories created w/ 755 permissions psychobyte Linux - Security 8 01-16-2006 10:36 PM
how are home directories created waynevnc Debian 3 07-02-2004 09:39 AM
home users with vsftpd swobodin Linux - Software 1 02-15-2004 09:35 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration