Re: Disallow certain users
From: Helge Preuss (spam.preuss_at_fhi-berlin.mpg.de)
Date: 12/08/03
- Previous message: LHradowy: "Disallow certain users"
- In reply to: LHradowy: "Disallow certain users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 08 Dec 2003 18:05:36 +0100
LHradowy wrote:
> 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...
>
>
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"!
- Previous message: LHradowy: "Disallow certain users"
- In reply to: LHradowy: "Disallow certain users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|