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 08:28:12 PST Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!news2.near.net!lard.ftp.com!cavedog.ftp.com!mamros From: mamros@ftp.com (Shawn Mamros) Newsgroups: comp.unix.osf.osf1 Subject: Re: OSF/1 2.0: why setuid bit everywhere? Date: Wed, 24 Aug 1994 11:21:39 Organization: FTP Software, North Andover, Massachusetts Distribution: usa Message-ID: <940824112139@cavedog.ftp.com> References: <778@trident.datasys.swri.edu> Reply-To: mamros@ftp.com NNTP-Posting-Host: cavedog.ftp.com NNTP-Software: PC/TCP NNTP 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. > >Just looks suspicious to me. The examples you cite aren't so suspicious, when you consider what they have to do: ps: open /dev/kmem (or perhaps the "files" in /proc) for reading. {d,}xterm: open and manipulate pseudo-ttys. dxpause: read from the passwd file or the root-only enhanced security database. It seems to me that ps and dxpause could be made to work setgid instead of setuid, if appropriate groups were given ownership and read-only capabilities on /dev/kmem and the enhanced security database. But there may be other issues there of which I'm not aware... -Shawn Mamros E-mail to: mamros@ftp.com