LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-29-2005, 04:01 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,608

Rep: Reputation: 45
create ftp user for vsftpd server without home directory


hi

I have 2 questions:

1.) howto create ftp user for vsftpd server without home directory ?

2.) howto configure /etc/vsftpd.conf to log automatically to /srv
and allow only /srv directory and its under-directories ?

greetings
cccc
 
Old 07-29-2005, 04:14 PM   #2
username17
Member
 
Registered: Aug 2004
Location: Norfolk VA
Distribution: Slackware 11
Posts: 230

Rep: Reputation: 30
I have a similar setup at home.

Create the user, once it's created edit /etc/passwd as root.
Look for the line where the user is listed.
The last part is going to have the home directory and then the shell.

Change the home directory to /srv and the shell to /bin/false.
Then the user cannot login to the shell.

Then you edit /etc/vsftpd.conf

chroot_local_user yes
local_enable yes


That's from memory, but that should work.
 
Old 07-30-2005, 06:32 AM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,608

Original Poster
Rep: Reputation: 45
thanks,

and howto allow only ftp group ?
 
  


Reply


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 - limit user to his/her home directory kaon Linux - Software 0 01-15-2005 12:32 AM
VSFTPD - lock user to home directory ohleary Linux - Software 3 11-20-2003 02:04 PM
vsFTPd: howto keep a user in his home directory jonnyz Linux - Networking 1 06-20-2003 02:06 PM
vsftpd home directory Harpune Linux - Networking 2 03-16-2003 10:58 AM
adding a new user doesn't create a home directory abrakadabra Linux - General 6 08-09-2002 08:11 PM


All times are GMT -5. The time now is 02:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration