*BSD News Article 78880


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!cancer.vividnet.com!hunter.premier.net!www.nntp.primenet.com!nntp.primenet.com!newsfeed.internetmci.com!demos!satisfy.kiae.su!news.fe.msk.ru!usenet
From: Oleg Broytmann <phd@ice.ru>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: ps permissions
Date: Mon, 23 Sep 1996 16:55:05 -0400
Organization: Institute for commercial engineering
Lines: 24
Message-ID: <3246F929.3F54@ice.ru>
References: <51ulak$497@news2.alpha.net>
Reply-To: phd@ice.ru
NNTP-Posting-Host: sundae.fe.msk.ru
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.02 (X11; I; SunOS 5.5 sun4u)

Brian E. Golon wrote:
> 
> When I try to use ps from a non-superuser account i get :
> 
> ps: /dev/mem: Permission denied
> 
> /dev/mem has the following properties:
> 
> crw-r-----  1 root  kmem   2,0,0 Jan 23  1996 /dev/mem
> 
> Any suggestions as to why a normal user cannot use ps?
> 
> TIA,
> 
> Brian.

   Make ps set-gid to group kmem:
% chmod g+s /bin/ps
% ls -l /bin/ps
-r-xr-sr-x  bin  kmem  /bin/ps

-- 
   Oleg Broytmann     Institute for commercial engineering     phd@ice.ru
           Programmers don't die, they just GOSUB without RETURN.