psimation
asked on
User login settings in /etc/passwd
Hi
When adding a user to my system using the default adduser xxx command, the suer can (by default) log in via ssh as long as I set a password.
What I want is for some users to NOT be able to log in via SSH, yet, they must still be able to use vsftp.
If I change the /etc/passwd entry for the specific user to /bin/nologin, then the user cannot login via SSH , but the user cannot use ftp either...
Is there a way?
When adding a user to my system using the default adduser xxx command, the suer can (by default) log in via ssh as long as I set a password.
What I want is for some users to NOT be able to log in via SSH, yet, they must still be able to use vsftp.
If I change the /etc/passwd entry for the specific user to /bin/nologin, then the user cannot login via SSH , but the user cannot use ftp either...
Is there a way?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
DOH
I answered my own question!, I made a typo, I went and said /bin/nologin in the /etc/passwd file, all works fine now, thanks for pointing out the problem
I answered my own question!, I made a typo, I went and said /bin/nologin in the /etc/passwd file, all works fine now, thanks for pointing out the problem
ASKER
Yes, it does contain /sbin/nologin ( sorry, was /sbin/nologin and not /bin/nologin)