/sbin/dmidecode - /dev/mem: Permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2013 08:25 AM
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.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2013 06:25 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2013 05:23 AM
Marcus, you are completely correct. My fault. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2017 01:09 PM
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
