sshd as non root

From: Ben Ford (ben_at_kalifornia.com)
Date: 09/24/05

  • Next message: Patrick Morris: "Limiting SSH reverse tunnels?"
    Date: Fri, 23 Sep 2005 23:45:00 -0700
    To: secureshell@securityfocus.com
    
    

    I'm trying to figure out some way to run sshd as non-root while still
    retaining full functionality. Now before you shout RTFM at me, I have
    read the docs and understand why they say you can't do it (binding to
    low port, switching users, etc).

    What I am trying to do is set up a kernel level "default deny" system
    using grsecurity. I'd like to deny ALL network access in or out of the
    system except for sshd, exim, apache and trusted users. In order to do
    this, ssh has to run as a different user than other system processes.

    Is there any way to accomplish this? Or is there another way to set up
    a default deny system? (is there a way to use iptables to filter by
    process rather than user?)

    I've already tried chmod +s /usr/bin/sshd and running as non-root and it
    didn't work.

    I'm running OpenSSH 4.2p1 on Linux 2.6.11.12 with the grsecurity patch.

    Thanks!
    -b

    -- 
    Dear Outlook users: Please remove me from your address books
    http://www.newsforge.com/article.pl?sid=03/08/21/143258
    

  • Next message: Patrick Morris: "Limiting SSH reverse tunnels?"

    Relevant Pages

    • Re: hosts.allow ?
      ... I tried a test from another one of my host by adding a line just like the one above and it still allows me to login. ... I tried running sshd off of inetd instead of in daemon mode. ... # Place both 'allow' and 'deny' rules in the hosts.allow file. ... No protection is afforded against DNS poisoning, ...
      (freebsd-questions)
    • Re: hosts.allow ?
      ... sshd: 62.149.232.105: deny ... so when denyhosts ... adds a deny line to the file, it will deny access to that host. ...
      (freebsd-questions)
    • Re: hosts.allow ?
      ... sshd: 62.149.232.105: deny ... Is there a cron job or something ... adds a deny line to the file, it will deny access to that host. ...
      (freebsd-questions)
    • Re: question on hosts.allow
      ... You will always see the attempts in security logs. ... you have to allow your IP and deny the rest. ... sshd: 82.165.182.220: deny ... MailScanner thanks transtec Computers for their support. ...
      (freebsd-questions)
    • Re: hosts.allow ?
      ... sshd: 62.149.232.105: deny ... so when denyhosts ... adds a deny line to the file, it will deny access to that host. ...
      (freebsd-questions)