1752790 Members
6038 Online
108789 Solutions
New Discussion юеВ

dmesg error

 
brian_31
Super Advisor

dmesg error

dmesg
can't read kernel memory

any one seen this error

Thanks

brian
7 REPLIES 7
Mridul Shrivastava
Honored Contributor

Re: dmesg error

I am not sure but may be you are having this problem because /etc/dmesg does not have an executable permission.

To resolve your problem, assign the following permissions to /etc/dmesg -> /usr/sbin/dmesg:

lrwxr-xr-t
Time has a wonderful way of weeding out the trivial
brian_31
Super Advisor

Re: dmesg error

still the same error

Thanks

brian
A. Clay Stephenson
Acclaimed Contributor

Re: dmesg error

Do an ls -l /dev/kmem and answer your own question. Also, don't be tempted to allow read access to /dev/kmem to all users because it is potentially a huge security leak as this is the actual kernal memory image. Writing to /dev/kmem is extremely hazardous as it alters the running kernel (in fact, that is how some of the "untuneable" tunables are changed).
If it ain't broke, I can fix that.
brian_31
Super Advisor

Re: dmesg error

$ ls -l /dev/kmem
crw-r----- 1 bin sys 3 0x000001 Nov 14 2000 /dev/kmem

thx

brian
Jeff Schussele
Honored Contributor

Re: dmesg error

Hi Brian,

Have you applied kernel parameter changes, relinked & not yet rebooted?
This is the msg you'll get if so.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
brian_31
Super Advisor

Re: dmesg error

i checked and the kernel changes are not pending

thx

brian
James R. Ferguson
Acclaimed Contributor

Re: dmesg error

Hi Brian:

As I posted in your duplicate thread, if you're not running as 'root' then this is the error you'll get.

As Clay suggested, look at the permissions of your '/dev/kmem'.

Regards!

...JRF...