SCO 5.0.5 setluid patch
Tim Rice
tim at multitalents.net
Sat Feb 24 05:24:24 EST 2001
On Fri, 23 Feb 2001, Gert Doering wrote:
> Hi,
>
> On Thu, Feb 22, 2001 at 11:00:29PM -0800, Sam Vaughan wrote:
> > Are you starting sshd from inetd? I see that you compiled in TCP
> > wrappers support. I'm wondering if that is why your LUID is getting set to
> > 0 (root).
>
> If you run sshd from the "login command line", logged in as root, the luid
> is "0", and there's no way to change it.
>
> You have to run sshd from /etc/inittab (e.G. with a "respawn ... ssh -D"
> entry), or from the no-luid-daemon, "sdd" (check with "man sdd").
>
> gert
>
Thanks for the tip.
I would have expected it to work correctly if run from a /etc/rc2.d script.
Oh well.
If I add "sshd:/usr/local/sbin/sshd:sysadmin" to the end of
/tcb/files/no_luid/cmdtable and then run "sd sshd" it works fine.
(does further testing) Opps. Sysadmin (me) malfunction.
It does work if you run /usr/local/sbin/sshd from a /etc/rc2.d script
I was doing a su root -c "/usr/local/sbin/sshd". That explains luid=0
All works as expected now.
--
Tim Rice Multitalents (707) 887-1469
tim at multitalents.net
More information about the openssh-unix-dev
mailing list