Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 1996 00:18:58 GMT
From:      James Raynard <fqueries@jraynard.demon.co.uk>
To:        flaq@synwork.com
Cc:        questions@freebsd.org
Subject:   Re: Trouble Running Top
Message-ID:  <199607200018.AAA17133@jraynard.demon.co.uk>
In-Reply-To: <Pine.BSI.3.94.960719181138.1714A-100000@synwork.com> (flaq@synwork.com)

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Mike K." <flaq@synwork.com> 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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607200018.AAA17133>