LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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,623

Rep: Reputation: 51
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,623

Original Poster
Rep: Reputation: 51
thanks,

and howto allow only ftp group ?
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:17 AM.

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