From: flipk@iastate.edu (Phil Knaack)
Subject: Re: OSF/1 2.0: why setuid bit everywhere?
Date: 24 Aug 94 20:04:30 GMT [thread overview]
Message-ID: <flipk.777758670@soclab.soc.iastate.edu> (raw)
In-Reply-To: 778@trident.datasys.swri.edu
In <778@trident.datasys.swri.edu>
ronniek@pegasus.NoSubdomain.NoDomain (Ronnie L. Killough) writes:
>Why does OSF/1 2.0 have the user-setuid (to root) bit set on so many
>executables? Examples are the "ps" command, X window executables xterm,
>dxterm, and dxpause, I could probably find others.
Things with the suid bit are processes run by users that must have
special priveleges in order to work. For example, ps needs to access
things like /dev/mem and /dev/kmem, which, of course, the normal user
can't open and read (thank god). Xterm and others must have root access
to write to /etc/utmp, which is the file that maintains a list of who is
logged on what tty, their idle times, etc .. a normal user can't access
this either. But the executable sets its own ID to root just long enough
to read the information, then sets it back to the user's ID when there
is any interaction with the user that might be a security hole. ``top''
is also setuid, but of course it switches back to the user's ID before
allowing execution of the ``kill'' command.
And even if a user could write to a suid binary file, as soon as he
writes to it, the suid bit is turned off by the kernel ..
>Just looks suspicious to me.
Well, you could change them all to non-suid, I suppose .. but then
again, a lot of things would break (unless you gave /dev/mem and
/dev/kmem and /etc/utmp and everything else world writable access, and
next thing you know, you have a multi-user DOS box .. ;)
Cheers,
Phil
--
Phil Knaack, WGA 296-2735 flipk@iastate.edu
Sociology Department 1304 Florida #3 flipk@vorpal.com
311 East Hall, 296-4869 Ames IA 5014 flipk@cs.iastate.edu
prev parent reply other threads:[~1994-08-24 20:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-08-18 21:55 OSF/1 2.0: why setuid bit everywhere? Ronnie L. Killough
1994-08-24 15:21 ` Shawn Mamros
1994-08-24 20:16 ` Phil Knaack
1994-08-24 23:56 ` Marc Fraioli
1994-08-24 20:04 ` Phil Knaack [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox