Sometimes you want to have users, that have access to files on your server, but don’t want them to be able to log in and execute commands on your server.
This is done quite easily.
Add user as usually and assign him a password. Then run the following command (replace the ‘username’ with real user name):
root@host # usermod s /usr/lib/sftpserver username






