Kangry.com [insert cool graphic here]
home | Topics | Logout | Search | Contact | ?? Kangry ?? | Bandwitdh
Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor

Name

Password

New user

uploaded files
(linux_command_line)-> vsftp restrict access submited by Russell Fri 04 Mar 05
Edited Thu 09 Mar 06
Web kangry.com
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:
guestaccess *
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: chroot_local_user=YES vsftpd FAQ
vsftpd start command
to start vsftpd (as root):
/etc/init.d/vsftpd start
to stop vsftpd (as root):
/etc/init.d/vsftpd stop
to have it start automaticly at boot(as root, remote login w/o xwindows):
/usr/sbin/setup
down arrow until "system services" is selected
press enter
down arrow until on the vsftpd line
press space to set the [*] box next to the service
press tab until "OK" is selected
press enter
tab until "Quit" is selected
press enter
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.
This should apply to All new versions of Redhat (FC4, RHEL 3,RHEL4) and other modern versions of linux

Keywords: vsftp restrict directory browsing
RedHat restrict FTP directory



Add comment or question...:
Subject:
Submited by: NOT email address. Leave blank for anonymous    (Spam Policy)

Enter Text: (text must match image for posting)




This file (the script that presented the data, not the data itself) , last modified Tuesday 06th of March 2018 11:41:12 PM
your client: claudebot
current time: Thursday 18th of April 2024 08:54:09 PM