Re: Who to run sshd as
- From: Greg Wooledge <wooledg@xxxxxxxxxxx>
- 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.
- References:
- Who to run sshd as
- From: James Stickland
- Who to run sshd as
- Prev by Date: Re: Who to run sshd as
- Next by Date: Re: sshd: entries in hosts.deny
- Previous by thread: Re: Who to run sshd as
- Next by thread: Re: Who to run sshd as
- Index(es):