1827697 Members
3109 Online
109967 Solutions
New Discussion

dmesg and /dev/kmem

 
motorola_austin
New Member

dmesg and /dev/kmem

We are running HP-UX 11.0 on 9000 class machines.

What should the permissions be for dmesg and /dev/kmem ? dmesg only works for user root because /dev/kmem is not readable for everyone. Some casual users need to run dmesg to get the Physical memory info.
(We do not have dmesg dumping to /var/adm/messages.)

Solaris has 3555 permissions on for dmesg and 640 for kmem. I checked a HP 9000 server in another admin group we have and they had /dev/kmem set at 644 and dmesg at 555 which allows dmesg to work for common users.

Here is what I have:
crw-r----- 1 bin sys 3 0x000001 Jan 19 2000 /dev/kmem
-r-xr-xr-x 1 bin bin 155648 Nov 7 1997 /sbin/dmesg
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: dmesg and /dev/kmem

I would set /dev/mem and /dev/kmem to 644 but make sure that it is owned by root. 555 for dmesg and again owned by root.

Clay
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: dmesg and /dev/kmem

Hi again,

Be awrare that dmesg will not always display memory; dmesh uses a circular buffer and once that is overwritten; the initial data is gone.
If it ain't broke, I can fix that.