How can I ensure that users can't login to the system except with FTP?
closed as too localized by Chris Down, Mat, Renan, Ulrich Dangel, jasonwryan Aug 19 '12 at 4:45
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.
Create users with the
Then they will be able to authenticate to the FTP server with their username and password, but they won't be able to ssh or telnet in.
For example on a Fedora or Red Hat system:
There are a couple of approaches to this, depending on your needs.
One is to set the shell to something not a shell, as described in another answer.
Another is to use iptables to set up a firewall that disallows all but FTP access. If you want to make the server publicly accessible at all, I recommend this option, possibly in combination with the first. You will need to enable connection tracking for it to work properly with FTP.