Browse - Computer Tips - How can I restrict an account to ftp only?
Q. How can I restrict an account to ftp only?
A. Make file /usr/local/bin/ftponly that contains:
echo "Only FTP access is allowed with this account."
and make it executable:
chmod a+x /usr/local/bin/ftponly
Then make it the user's shell:
chsh -s /usr/local/bin/ftponly <user>
Try to login to this account with ssh, you should be denied
Alternately, some ftp server all virtual users. ie users who aren't Linux