Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jul 1996 00:02:55 +1000 (EST)
From:      Paul Reece <paul@tassie.net.au>
To:        questions@freebsd.org
Subject:   Re: Trouble Running Top
Message-ID:  <Pine.BSF.3.91.960723000203.20275A-100000@merlin.tassie.net.au>
In-Reply-To: <199607221154.LAA03215@btp1da.phy.uni-bayreuth.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 22 Jul 1996, Werner Griessl wrote:

> > When I try to run top as a user, I get the following error:
> > 
> > [/home/flaq] :top
> > kvm_open: /dev/mem: Permission denied
> > [/home/flaq] :
> > 
> > If I run it as root, it runs fine.  Below are the properties of /dev/mem
> > 
> > crw-r-----  1 root  kmem    2,   0 Jul 19 05:38 mem
> > 
> > Any idea how to fix this?
> > 
> > Mike
> > 
> > 
> > ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> >     Syn-Work Media, Inc.   | WWW Development & Hosting | Life Safety    
> >        http://www.synwork.com | Systems Integration       | CCTV           
> >    mike@synwork.com       | Voice/Data/Fiber          | Access Control 
> >      Flaq on IRC            | Dukane Distributor        | BICSI/RCDD     
> > ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> > 
> > 
> 
> Add the user to group kmem in /etc/groups !
> Werner

even better, make top sgid kmem (like it usually is):

-rwxr-sr-x 1 root kmem 42957 Dec 7 1995 /usr/local/bin/top*


Regards,
Paul.

--
Paul Reece
paul@fastlane.net.au





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960723000203.20275A-100000>