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 07:57:47 -0500 |
On Fri, Oct 27, 2006 at 11:44:04PM -0400, James Stickland wrote:
I setuid the sshd binary to execute as a normal user "joe"
Don't do that!
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?
Run it on a different port (greater than 1023). Then run it *as* the other user, but *not* setuid! su joe -c /usr/sbin/sshd # or whatever But I don't think it'll be very useful -- it won't be able to "log you in" as anyone but the user as whom it's running, since it won't have the privileges to switch users. Oh, and you may need to turn off privilege separation, since it won't be able to switch users to the sshd account either.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Who to run sshd as, Atro Tossavainen |
|---|---|
| Next by Date: | Re: sshd: entries in hosts.deny, Rob Munsch |
| Previous by Thread: | Re: Who to run sshd as, Atro Tossavainen |
| Next by Thread: | Re: Who to run sshd as, Michael Ekstrand |
| Indexes: | [Date] [Thread] [Top] [All Lists] |