Restricting ftp Access
by Sanju[ Edit ] 2009-10-27 15:32:19
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