I have added a user to the system via the
adduser tool. Then, in
/etc/passwd, I tried changing the
/sbin/nologin or to
/dev/null, but neither of these worked.
I would like the user not having the option to get an interactive shell, and just to use
sftp. Is there a way?
I know it's been asked here before but it seems no-one gave a satisfactory response.