LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   create ftp user for vsftpd server without home directory (https://www.linuxquestions.org/questions/linux-networking-3/create-ftp-user-for-vsftpd-server-without-home-directory-348134/)

cccc 07-29-2005 04:01 PM

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

username17 07-29-2005 04:14 PM

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.

cccc 07-30-2005 06:32 AM

thanks,

and howto allow only ftp group ?


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