Disallow certain users

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
How do you set up ssh to disallow certain users.
I know if there is an /etc/nologin only root can login. But, how do you do
it for individual users?
hosts.allow and inetd.sec is related to host name or ips...

Re: Disallow certain users

LHradowy wrote:
Quoted text here. Click to load it
As I figure it, you must edit /etc/passwd for this purpose. under Linux
you can set the login shell to /sbin/nologin. /bin/false comes to mind
if the system does not support it. Or else you can set the password
entry to an impossible value.
I don't know any solution, which does not alter passwd.

hint: my first name is not "spam"!

Site Timeline