SUMMARY: Error on ps

From: Jorge Granjal (jgranjal@mercurio.uc.pt)
Date: Wed Sep 20 1995 - 03:40:41 CDT


Hi there,

Thanx for all who replied. The problem was with permissions in
/dev/kmem and /dev/drum. A chmod a+r solved the problem. I still don't know
what caused the problem with the permissions.

--------Original Problem--------------------------------
Hi managers,

I have a problem with "ps" on a Sparc running SunOs4.1.3. If I run "ps"
as a user other than "root", the result is:

[mymachine]> ps
ps: cannot open /dev/mem: Permission denied
ps: could not read kernel VM

[mymachine]>
I've checked the permissions on /dev/mem and they looks normal:

[mymachine]> ls -al /dev/mem
crw-r----- 1 root 3, 0 Sep 23 1992 /dev/mem
[mymachine]>

Maybe the problem is related to some accounting functions that i've
turned on in the machine.

Any help will be apreciated.

Thanx in advance

Jorge
-------------------------------------------------------------------------

Solution:

As I said above...

[mymachine]> ls -lg /dev/kmem
crw-r----- 1 root kmem 3, 1 Mar 5 1993 /dev/kmem
[mymachine]> ps (as other than root!)
Permission denied on /dev/kmem blah blah blah.....
[mymachine]> chmod a+r /dev/kmem
[mymachine]> ps
Permission denied on /dev/drum blah blah blah.....
[mymachine]> ls -lg /dev/drum
crw-r----- 1 root 7, 0 Mar 5 1993 /dev/drum
[mymachine]> chmod a+r /dev/drum
[mymachine]> ps
21892 p3 IW 0:00 overithing
21905 p3 S 0:21 now
21909 pb IW 0:00 is
21741 qe S 0:00 working
23759 qe R 0:00 great... :-)

Thanx to all:

Greg Spiegelberg <gspiegel@archimedes.vislab.navy.mil>
Dixon Ly <dly@lily.csl.sri.com
Chun Wong <cwong@coyote.TRW.COM>
Jeff Greer <jeff@datapage.com> <-
"Jeremy D. Zawodny" <jzawodn@cs.bgsu.edu>
Gary Parker <parker@cldx.com>
"Lewis E. Wolfgang" <wolfgang@sunspot.nosc.mil>
Stephen Harris <sweh@mpn.com>
Jochen Bern <bern@penthesilea.uni-trier.de>
Chuck Uretzky <wbbart!cau@abars.att.com>
dwillard@scires.com
Russ Poffenberger <poffen@San-Jose.ate.slb.com>
Michael Tripoli <miket@Seagate.COM>
Friedhelm Waitzmann <Friedhelm.Waitzmann@studbox.uni-stuttgart.de>

Greetings from Portugal, the most beatiful country in the world

Jorge

.........................................................................
 Jorge Granjal | Systems Manager
 E-Mail: jgranjal@mercurio.uc.pt | University of Coimbra
 Tel. 351-039-7000059 | Computer Science Department
 Fax. 351-039-701266 | Vila Franca, Pinhal de Marrocos
 Public Key: PGP available. | 3030 Coimbra
 WWW: http://cleo.uc.pt/~jgranjal | Portugal
.........................................................................



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:34 CDT