/sbin/dmidecode - /dev/mem: Permission denied

Dvnasc
Kilo Explorer

I setup the Linux account for my Linux environment (i.e. servicenow).
Then give root privilege to run the sudo command:

servicenow ALL=(root) /sbin/dmidecode
servicenow ALL=(root) /sbin/lsof

But, I still have some questions. I did one test, from my Linux server using the user account "servicenow" I tried to run the command "/sbin/dmidecode
"
It seems not work, please see the message below:

[servicenow@TestServer ~]$ /usr/sbin/dmidecode
# dmidecode 2.11
/dev/mem: Permission denied

I am not sure if the MID server will succeed to discovery my Linux enviroment, because from my linux I'm getting this message "Permissions denied".

Thanks.

3 REPLIES 3

Marcus Fly
Tera Expert

When logged in as the 'servicenow' user on your linux machine you need to add 'sudo' in front of all commands so your command should be this:



sudo /usr/sbin/dmidecode


Can you run that and post the results?



Dvnasc
Kilo Explorer

Marcus, you are completely correct. My fault. Thanks.


I have the same experience running that command.   I found that you have to add sudo in front of the command when logged in as the disco user.   however, I'm still unable to discover attributes such as the serial number with the dmidecode command even if I have the must sudo parameter set to true.   My question is once you finished your disco setup, were you able to pull in serial number information?



Thanks,



-Terry