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:55:28 PST Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!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:16:29 GMT Organization: Iowa State University, Ames, Iowa Distribution: usa Message-ID: References: <778@trident.datasys.swri.edu> <940824112139@cavedog.ftp.com> NNTP-Posting-Host: soclab.soc.iastate.edu In <940824112139@cavedog.ftp.com> mamros@ftp.com (Shawn Mamros) writes: >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... There is nothing wrong with this method, in fact a number of systems do it this way. It's just that OSF has chosen not to. In the case of NetBSD (the system with which I am most familar, above OSF): -r-xr-sr-x 1 bin kmem 147456 Aug 23 18:03 /bin/ps crw-r----- 1 root kmem 2, 1 Aug 1 01:32 /dev/kmem ps is setgid only, to the group kmem. notice also that this is the kmem version of ps, there is also a version of ps which uses the /proc filesystem. The point of the /proc filesystem is that these processes need not have -any- priveleges to access them. all subdirectories of /proc (which are PID numbers) are owned by the owner of the process, and are mode 555. fstat, ipcs, lpq, lpr, lprm, modstat, nfsstat, uptime, vmstat, w, wall, and write are several other examples of this. It's all moot though, anyway, since OSF does this for a very tiny number of utilities, and this -is- an OSF newsgroup, so I'll shut up now ;) 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