From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10952f,fb0b989898528560,start X-Google-Attributes: gid10952f,public X-Google-Thread: fee84,4e390c3218028710 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-24 16:55:37 PST Path: bga.com!news.sprintlink.net!news.clark.net!usenet From: mjf@clark.net (Marc Fraioli) Newsgroups: comp.unix.osf.osf1,comp.security.unix Subject: Re: OSF/1 2.0: why setuid bit everywhere? Date: 24 Aug 1994 23:56:42 GMT Organization: Fraioli's Linux Hacking and Chowder Society Message-ID: <33gmnq$mqk@clarknet.clark.net> References: Reply-To: mjf@clark.net NNTP-Posting-Host: mjf_ppp.clark.net Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Xref: bga.com comp.unix.osf.osf1:3183 comp.security.unix:6201 In article 777759389@soclab.soc.iastate.edu, flipk@iastate.edu (Phil Knaack) writes: >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. [example nixed] While this should work for ps, I don't believe it will work for dxpause on DEC OSF/1. This is because if you switch to enhanced security, the database is actually read through a system (or library?) call, rather than by directly reading the files in the database, and that call will return only an error unless euid == 0. I think this is a somewhat poor design, BTW. I was hoping to port xlock to OSF/1 w. enhanced security, but basically gave up because that design choice would force me to make xlock suid to root, which I don't trust it enough to do. I prefer the method that Sun chose for Solaris 2 and NIS+, wherein users can see their own password (encrypted), but no one else's, and xlock can run without setuid. I believe NIS+ achieves this with some sort of DES-based public-key authentication, so even root can't poke at stuff you don't want it to. This solves the old NIS problem where remote sites can grab your passwords just by guessing your domain name. comp.security.unix added to newsgroups: --- Marc Fraioli | "They couldn't hit an elephant at this dist- " mjf@clark.net | - Last words of Union General John Sedgwick, | Battle of Spotsylvania Court House, U.S. Civil War