From owner-freebsd-questions Fri Jul 19 18:01:52 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA00566 for questions-outgoing; Fri, 19 Jul 1996 18:01:52 -0700 (PDT) Received: from relay-5.mail.demon.net (relay-5.mail.demon.net [158.152.1.48]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id SAA00561 for ; Fri, 19 Jul 1996 18:01:50 -0700 (PDT) Received: from post.demon.co.uk by relay-5.mail.demon.net id ae01565; 20 Jul 96 1:59 +0100 Received: from jraynard.demon.co.uk ([158.152.42.77]) by relay-3.mail.demon.net id aa10415; 20 Jul 96 1:21 +0100 Received: (from fqueries@localhost) by jraynard.demon.co.uk (8.6.12/8.6.12) id AAA17133; Sat, 20 Jul 1996 00:18:58 GMT Date: Sat, 20 Jul 1996 00:18:58 GMT Message-Id: <199607200018.AAA17133@jraynard.demon.co.uk> From: James Raynard To: flaq@synwork.com CC: questions@freebsd.org In-reply-to: (flaq@synwork.com) Subject: Re: Trouble Running Top Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> "Mike K." writes: > > 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? No, that's how it should be - you don't want just anyone to be able to poke around in there, do you? :-) The $64 question is, what are the permissions on top? They should be -rwxr-sr-x 1 root kmem 36864 Jun 23 21:08 /usr/local/bin/top If not, use chmod and/or chown as appropriate. -- James Raynard, Edinburgh, Scotland james@jraynard.demon.co.uk http://www.freebsd.org/~jraynard/