HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   chroot / vsftpd (http://www.howtoforge.com/forums/showthread.php?t=60)

andre 3rd May 2005 11:03

chroot / vsftpd
 
I'm using vsftpd as my FTP server, and I'd like to chroot my FTP users to their home dir. How can I do it?

Andre

falko 3rd May 2005 12:18

Put

Code:

passwd_chroot_enable=YES
in

Code:

/etc/vsftpd.conf
and restart vsftpd. That chroots each user to the directory specified in /etc/passwd. If you want to chroot a user to another directory than his home directory, simply put a dot (.) in the path to his home directory in /etc/passwd:

admin:x:1000:1000:admin:/home/./admin:/bin/bash

would chroot the user admin to /home instead of /home/admin.


All times are GMT +2. The time now is 02:19.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.