
Setting up Restricted FTP access for users.
- Get their IP Address or range and add access for them in your external firewall.
- Ensure that FTP access
has been granted on the server firewall.
- Edit the VSFTP config
file found in /etc/vsftpd/vsftpd.conf, remove anonymous access and configure
the banner message to indicate MyServer FTP
- Add the service to chkconfig
so it starts on reboot.
chkconfig vsftpd on
- The web group should already be added, if not add it.
groupadd web
- Create the web directory
mkdir /web
- Create the directory to be used by an individual user, ie: ftpuserftp
cd web
mkdir ftpuser
- Make the directory accessible to the web group
chmod 750 /web
chown root.web /web
- Add the users and
make their default directory the created directory
in /web
useradd -g web -d /web/ftpuser ftpuserftp
- Set the password
passwd reallysafepasswd
- Check /etc/group to ensure the newly added user is included in the web group.
- Create a test file in /web/ftpuserftp and test the ftp
service to ensure it works.
Good luck!