Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Who to run sshd as |
|---|---|
| Date: | Tue, 31 Oct 2006 10:32:15 -0600 |
On Fri, 2006-10-27 at 23:44 -0400, James Stickland wrote:
Hello, im running openssh 4.4p1 for Linux I setuid the sshd binary to execute as a normal user "joe" but that user does not have permission to bind the socket. How can i have my sshd run as non-root, yet still bind the socket?
Only root can bind to ports < 1024. So if ssh is going to become non-root, it must start as root and then drop its privileges after it binds to the port. Further, it needs the ability to setuid() to the user who logs in. If you're wanting to understand or control the user OpenSSH runs as, look at its privilege separation capabilities. Not sure if they're available in non-OpenBSD OpenSSH, but they should be the tool for what you're wanting. - Michael
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: sshd: entries in hosts.deny, Rob Munsch |
|---|---|
| Next by Date: | Re: Whos using what key, Alexander Klimov |
| Previous by Thread: | Re: Who to run sshd as, Greg Wooledge |
| Next by Thread: | RE: Who to run sshd as, Young, Randy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |