Re: UsersDeny except root@myserver

From: Greg Wooledge (wooledg_at_eeg.ccf.org)
Date: 02/16/04

  • Next message: Ezsra McDonald: "RE: OpenSSH and PAM LDAP"
    Date: Mon, 16 Feb 2004 08:14:24 -0500
    To: "'secureshell@securityfocus.com'" <secureshell@securityfocus.com>
    
    

    On Fri, Feb 13, 2004 at 12:28:36PM +0100, Miller Alan wrote:
    > I want to Allow all users from all hosts, but at the same time
    > deny all root users except root from 2 specific machines.

    I think the only way to do this is to run two separate instances of sshd
    on two different ports, with different config files. In the "normal"
    (port 22) one, you disallow root. In the other one, on the alternate
    port, you allow root, but you disallow connections from all hosts except
    the desired ones. (This can be done with PF/IPF/ipchains/iptables
    depending on OS/version, or with TCP wrappers.)


  • Next message: Ezsra McDonald: "RE: OpenSSH and PAM LDAP"

    Relevant Pages

    • Re: pinging without root privileges
      ... I've still not been able to get a rudimentary ping routine ... > feasible, since I want to be able to do this w/out root privileges, so ... > an unbound port, and looking for a port unreachable message. ... > of control on the configuration of the hosts, ...
      (comp.unix.programmer)
    • SUMMARY: Why is passwd prompting root for password?
      ... Why is passwd prompting root for password? ... hosts I checked appeared to have the same pam.conf except this problem host. ...
      (SunManagers)
    • Why is passwd prompting root for password?
      ... I have ONE host where the passwd command is prompting root for a password ... On all other hosts, I can su - to root and issue the passwd command to reset ...
      (SunManagers)
    • XML manipulation
      ... I have a scenario where I should edit an xml file. ... Computer viruses can be transmitted via email. ...
      (perl.beginners)
    • RE: SSH attacks?
      ... a BLANK ROOT PASSWORD. ... Subject: SSH attacks? ... Most of the hosts doing the scans seem to be running sshd. ...
      (Incidents)