From owner-freebsd-questions Mon Jul 22 07:02:53 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA08166 for questions-outgoing; Mon, 22 Jul 1996 07:02:53 -0700 (PDT) Received: from merlin.tassie.net.au (root@merlin.tassie.net.au [203.19.156.139]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA08161 for ; Mon, 22 Jul 1996 07:02:50 -0700 (PDT) Received: (from paul@localhost) by merlin.tassie.net.au (8.6.12/8.6.12) id AAA20408; Tue, 23 Jul 1996 00:02:56 +1000 Date: Tue, 23 Jul 1996 00:02:55 +1000 (EST) From: Paul Reece To: questions@freebsd.org Subject: Re: Trouble Running Top In-Reply-To: <199607221154.LAA03215@btp1da.phy.uni-bayreuth.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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