LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Restricting FTP Users to their home dir in vsftpd (https://www.linuxquestions.org/questions/linux-software-2/restricting-ftp-users-to-their-home-dir-in-vsftpd-85087/)

~ForgottenFlux~ 08-24-2003 03:08 AM

Restricting FTP Users to their home dir in vsftpd
 
i have a working vstpd server up, but i would like to know how to rstrict users who login using an FTP client to only see their home directory. i.e. they cannot even view anything above /home/user. this is for obvious reasons...heh.

also, if at all possible, can you restrict users to FTP logins period? like not let them telnet or ssh to the server. i think i remember reading something about chsh'ing that user to a fake shell that closes itself as soon as they logon. how exactly do i do that?

markus1982 08-24-2003 05:19 AM

You should NEVER create real system users. You can almost always go with virtual users. vsftpd does support virtual users so take a look at vsftpd with virtual users. Next time please consider using the SEARCH function!

beatlelane 09-03-2003 07:54 PM

Re: Restricting FTP Users to their home dir in vsftpd
 
Quote:

Originally posted by ~ForgottenFlux~
i have a working vstpd server up, but i would like to know how to rstrict users who login using an FTP client to only see their home directory. i.e. they cannot even view anything above /home/user. this is for obvious reasons...heh.

also, if at all possible, can you restrict users to FTP logins period? like not let them telnet or ssh to the server. i think i remember reading something about chsh'ing that user to a fake shell that closes itself as soon as they logon. how exactly do i do that?

hope this will help...

you can add an entry to configuration file of vsftpd (vsftpd.conf on rh9)

chroot_local_user=YES

or you can use virtual users as they suggests for more security...actually, i am a newbie too and have to read more about this virtual solution:D


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