Re: Disallow certain users

From: Helge Preuss (spam.preuss_at_fhi-berlin.mpg.de)
Date: 12/08/03

  • Next message: LHradowy: "Disallow certain users - update Can you put a banner with it?"
    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"!
    

  • Next message: LHradowy: "Disallow certain users - update Can you put a banner with it?"

    Relevant Pages

    • Re: Locking down ssh config in large env
      ... PC> deployment of unix hosts. ... PC> ssh cli program to ignore individual users .ssh/ssh_config files and only ... PC> ignore individual users .ssh/known_hosts entries. ... PC> Also I have some issues with getting a recent bind deployment in place to ...
      (SSH)
    • Locking down ssh config in large env
      ... deployment of unix hosts. ... ssh cli program to ignore individual users .ssh/ssh_config files and only ... ignore individual users .ssh/known_hosts entries. ... Also I have some issues with getting a recent bind deployment in place to ...
      (SSH)
    • Re: how to restrict any user for ssh
      ... If you are trying to restrict which individual users can login via ssh, ... If you want to limit which hosts can connect to your server, you could use a firewall (iptables) or tcp wrappers. ... I am trying to restrict any user for ssh my server. ...
      (RedHat)