(linux_command_line)-> vsftp restrict access
submited by Russell Fri 04 Mar 05|
Edited Thu 09 Mar 06
I am converting to a new server for FTP from Redhat 7.x to Fedora Core 3.
FC3 comes with vsftpd but not wu-ftpd. my old server was configured to use :the:
setting in /etc/ftpaccess
this restricts access to each ftp user to only their home directory. ( they can't cd .. up to /home or higher )
well wu-ftpd is not includeded with FC3 , the latest rpm I could find is for Redhat 8 and will not install on FC3. The source will also not compile on newer installs.
Well it turns out that vsftpd does support an option like this.
In /etc/vsftpd/vsftpd.conf , add the line:
vsftpd start command
to start vsftpd (as root):
to stop vsftpd (as root):
to have it start automaticly at boot(as root, remote login w/o xwindows):
There are other more elgant ways to do this, but I find this to be the most trouble free method. Don't forget that this doesn't start the service until the next reboot, so start it manualy as above.
down arrow until "system services" is selected
down arrow until on the vsftpd line
press space to set the [*] box next to the service
press tab until "OK" is selected
tab until "Quit" is selected
This should apply to All new versions of Redhat (FC4, RHEL 3,RHEL4) and other modern versions of linux
vsftp restrict directory browsing
RedHat restrict FTP directory
Add comment or question...: