running hddtemp sensor as non-root
Zach Carter
linux at zachcarter.com
Mon Jul 2 17:31:17 CEST 2007
On Monday 02 July 2007 06:51:49 am Roger D Vargas wrote:
>
> Krisztian VASAS escribió:
> > On Fri Jun 29, 2007 at 12:27:40 -0400, Roger D Vargas wrote:
>
> >
> > 2. put something like this into the sudoers and you'll can use hddtemp as
> > user with sudo:
> > username ALL=(ALL) NOPASSWD: /usr/sbin/hddtemp
> I made a similar solution at home, but there is a problem, hddtemp cant
> open dev/hda, unless you also set UID permission.
>
>
On my FC7 system, hddtemp runs as a daemon as root, but you can query it as a regular user.
[carter at hoth ~]$ hddtemp /dev/sda
/dev/sda: ST3160827AS: 46°C
[carter at hoth ~]$ id
uid=500(carter) gid=500(carter) groups=12(mail),500(carter),501(workplace)
[carter at hoth ~]$
Why do you need to run it as root?
-Zach
More information about the Xfce
mailing list