From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4e390c3218028710 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-24 13:48:04 PST Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!vixen.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!soclab.soc.iastate.edu!flipk From: flipk@iastate.edu (Phil Knaack) Newsgroups: comp.unix.osf.osf1 Subject: Re: OSF/1 2.0: why setuid bit everywhere? Date: 24 Aug 94 20:04:30 GMT Organization: Iowa State University, Ames, Iowa Distribution: usa Message-ID: References: <778@trident.datasys.swri.edu> NNTP-Posting-Host: soclab.soc.iastate.edu Keywords: setuid 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