Restricting ftp Access - VPS (Virtual Private Server) Views : 451
Tagged in : VPS (Virtual
0 0
Send mail
Restricting ftp Access

To block FTP access for specific user follow the steps:

* Goto,
root@host [/]# vi /etc/ftpusers

and enter the username which you want to block the FTP access.

When a user attempts to log into your system using ftp, the ftpd daemon checks the /etc/ftpusers file.
If the file exists, and the user's login name is listed in it, ftpd denies access to the user.

User accounts that specify a restricted login shell in /etc/passwd should be listed in /etc/ftpusers,
because ftpd accesses local accounts without using their login shells. UUCP accounts should also be listed in /etc/ftpusers.

Each line in /etc/ftpusers consists of a login name with no white space. Following is an example /etc/ftpusers file:

* uucp
* guest
* nobody
By Sanju, On - 2009-10-27



    Login to add Comments .