It looks like you need both read and write privileges on that device for 
it to work from non-root users. I'm not entirely sure why ipmitool needs 
to write to the device though. I'm not sure you really want to do this 
though because it may allow non-root users to do things like 
shutdown/reboot the host.

--
Brian McNally

Shaun Qualheim wrote:
> Hi there all --
> 
> I realize that this may not be the most appropriate group for this topic,
> but it's quite likely someone here has run into this at some point.
> 
> I'm using nagios and wanting to use the check_ipmi script on the local
> machine with a check_by_ssh check.
> 
> The problem I'm running into right now is when the script is trying to run
> the ipmitool command as a non-root user.  I've changed /dev/ipmi0 to have
> 644 permission in an attempt to allow non-root users to read from the ipmi
> device.  This has not yet worked though:
> 
> 
> crw-r--r-- 1 root root 252, 0 Aug  5 22:31 /dev/ipmi0
> 
> 
> I still receive the following response:
> 
> 
> [sh...@localhost ~]$ ipmitool sdr
> Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No
> such file or directory
> Get Device ID command failed
> Unable to open SDR for reading
> 
> 
> 
> Anyone know what needs to be done to enable read-only non-root ipmi access
> for this script to grab the data for nagios?
> 
> Thanks,
> Shaun
> 

_______________________________________________
Linux-PowerEdge mailing list
Linux-PowerEdge@lists.us.dell.com
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq

Reply via email to