Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: flipk@iastate.edu (Phil Knaack)
Subject: Re: OSF/1 2.0: why setuid bit everywhere?
Date: 24 Aug 94 20:16:29 GMT	[thread overview]
Message-ID: <flipk.777759389@soclab.soc.iastate.edu> (raw)
In-Reply-To: 940824112139@cavedog.ftp.com

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


  reply	other threads:[~1994-08-24 20:16 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 [this message]
1994-08-24 23:56     ` Marc Fraioli
1994-08-24 20:04 ` Phil Knaack
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