*BSD News Article 9443


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA5778 ; Fri, 01 Jan 93 01:55:29 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!zaphod.mps.ohio-state.edu!swrinde!gatech!destroyer!cs.ubc.ca!uw-beaver!newsfeed.rice.edu!rice!news.Rice.edu!rich
From: rich@Rice.edu (& Murphey)
Subject: Re: recompiled ps exits with /dev/mem permission denied message
In-Reply-To: dfox@quack.sac.ca.us's message of 30 Dec 1992 21:03:57 UTC
Message-ID: <RICH.92Dec30221655@superego.Rice.edu>
Sender: news@rice.edu (News)
Reply-To: Rich@rice.edu
Organization: Department of Electrical and Computer Engineering, Rice
	University
References: <fXiP7x7@quack.sac.ca.us>
Date: Thu, 31 Dec 1992 04:16:55 GMT
Lines: 13

>>>>> In article <fXiP7x7@quack.sac.ca.us>, dfox@quack.sac.ca.us (David Fox) writes:
David> I've noticed something strange.  After putting in a Cyrix NDP, and
David> recompiling ps and libutil.a (installing the patch for ps), ps
David> dies when I'm not logged in as root with

David> ps: kvm_openfiles: can't open /dev/mem: permission denied

you need to 'chgrp kmem /bin/ps' and 'chmod g+w /bin/ps' so that it is
set-group id on execution:

-r-xr-sr-x   1 bin      kmem        77824 Dec 16 15:52 /bin/ps*

Rich