LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-11-2010, 10:55 AM   #1
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Rep: Reputation: Disabled
Question vsftpd with central authentication, but without home directory on the server


Hi all,

I am trying to build a ftp server with vsftpd. In general, I am not able to log in. I can only log in to the ftp server, if that same user is logged in to the server. I found out that this has to with my network setup. I am using OpenLDAP for centralized authentication and home directories are stored on an NFS server. The problem is that regular users are not allowed to log in to servers, therefore their home directories are not mounted. However I want to be able to give my users access to the ftp server without their home directories mounted. Is this possible with vsftpd and if so how do get this up and running. By the way, anonymous users are not allowed.

TIA
 
Old 05-11-2010, 10:58 AM   #2
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Original Poster
Rep: Reputation: Disabled
I forgot to mention that I would like the users to be chrooted in /opt/ftp, which I specially created for this task.
 
Old 05-12-2010, 10:08 AM   #3
dinakumar12
Member
 
Registered: Mar 2010
Location: INDIA (chennai)
Distribution: centos
Posts: 271
Blog Entries: 7

Rep: Reputation: 18
hi,

you can chroot the ftp users to /opt/ftp directory using this command.


"useradd username -p hostname -d /opt/ftp -s /bin/bash".

For the ftp users to login i have enabled a line

local_enable=yes

in the vsftpd.conf file, Please check whether it works for you or not.
 
Old 05-12-2010, 11:32 AM   #4
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Original Poster
Rep: Reputation: Disabled
Do you mean that I should create users on the localhost? As this is something I want to prevent. I already have user accounts stored in my directory service. The homeDirectory attribute in ldap is for each user set to /home/<username>. This cannot be changed as the home directory is mounted from an nfs server to /home.

So, I want to use the centralized useraccount for ftp and give them access to the ftp directory (/opt/ftp) without needing to change the location of their home directory.

I am starting to think this cannot be done...
 
  


Reply



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
Configuring LDAP as central authentication server with vsftpd and smb domain l0pht Linux - Server 1 01-01-2010 12:08 PM
Set up a central Authentication Server a_to_z123 Linux - Server 5 10-20-2008 04:11 AM
Alternative to Active Directory / out-of-the-box central authentication with Linux? superwormy Linux - Server 5 12-18-2007 12:00 PM
Central file server in home environmant General Chaos Linux - Networking 2 08-21-2006 08:15 AM
create ftp user for vsftpd server without home directory cccc Linux - Networking 2 07-30-2005 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:14 PM.

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