CentOS :: Setting User Can Access FTP Only

17 sec read

:: What’s this
FTP is a standard network protocol used to transfer files from one host to another host over a TCP-based network.

 
:: How to setup user can access ftp only without shell access
+ Disable shell access for user

vi /etc/passwd

change /bin/bash to /bin/false, so some like this:

mee:x:1000:1000::/home/mee:/bin/false

 
+ Add /bin/false in /etc/shells

vi /etc/shells

add this line:

/bin/false

 
:: Links
+ Google

Leave a Reply

Your email address will not be published. Required fields are marked *