if you use FTP protocol on your server which is not secure channel (Recommend to use SFTP Protocol because it’s encrypted channel), so for security reasons my be you need to restrict this protocol for only users who used it.
you have 2 ways to do that :
First Way- use “/etc/ftpusers” file :
– and you can create this file and write on it all users that you don’t need to access your Server through FTP, for example if you need “user1” to access your server, then you will write all users on listed in “/etc/passwd” in this file “/etc/ftpusers” except “user1”.
Second Way – use “/etc/ftpaccess.ctl” file :
– you must follow the syntax when you use this file, it has more than options(allow,deny,readonly,writeonly,readwrite,useronly,grouponly,hearld,motd) and i prefer it.
allow:host1,host2,host3
deny:host4,host5
readonly:dir1
writeonly:dir2
readwrite:dir3,dir4
useronly:user1,user5
grouponly:group1
hearld: MESSAGE_PAT
motd:on|off
HINT :
– herald option used to display message before FTP user login like the message stored on “/etc/motd”
Leave a Reply