Re: [gentoo-user] Running hddtemp with plain user rights
Alexander Skwar schreef: Hello! I'd like to be able to run hddtemp http://www.guzu.net/linux/hddtemp.php with plain user rights - ie. not with root rights. What's to be done, so that this is possible? snip As you can see, I get the error message Permission denied when I run hddtemp /dev/hda. As you can further see, the group disk has read-/write-access on the device file. And lastly, you can see that my user is member of the group disk. Why do I get the Permission denied error message? And what's to be done? Isn't hddtemp a daemon (therfore executable)? Does the group have the right to execute hddtemp? Just an idea, Holly -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running hddtemp with plain user rights
Holly Bostick wrote: Alexander Skwar schreef: Why do I get the Permission denied error message? And what's to be done? Isn't hddtemp a daemon Not necessarily. It can be run in daemon mode, though. Does the group have the right to execute hddtemp? Yep: [EMAIL PROTECTED] ~ $ ls -la `which hddtemp` -rwxr-xr-x 1 root root 27712 21. Jan 08:02 /usr/sbin/hddtemp BTW: sudo is also not what I'm after :) I'm after the reason, why I get that Permission denied message when I've got the necessary rights on the device file. Alexander Skwar -- You cannot achieve the impossible without attempting the absurd. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running hddtemp with plain user rights
On Sat, Jan 21, 2006 at 04:06:44PM +0100, Alexander Skwar wrote: Does the group have the right to execute hddtemp? Yep: [EMAIL PROTECTED] ~ $ ls -la `which hddtemp` -rwxr-xr-x 1 root root 27712 21. Jan 08:02 /usr/sbin/hddtemp BTW: sudo is also not what I'm after :) I'm after the reason, why I get that Permission denied message when I've got the necessary rights on the device file. I get this too. stracing the hddtemp process shows that it tries to perform some ioctls on the device and get EACCESS back, probably from some uid check in the kernel. The check itself can probably be found but I dont have the time for that now. Rasmus -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running hddtemp with plain user rights
Rasmus Andersen wrote: I get this too. stracing the hddtemp process shows that it tries to perform some ioctls on the device and get EACCESS back, probably from some uid check in the kernel. Ah, okay, so the permissions on /dev/hda don't matter that much. Understood. Thanks! The check itself can probably be found but I dont have the time for that now. Don't worry. I guess I'll have to setuid hddtemp then. Thanks again, Alexander Skwar -- Practice is the best of all instructors. -- Publilius -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running hddtemp with plain user rights
On 1/21/06, Alexander Skwar [EMAIL PROTECTED] wrote: Don't worry. I guess I'll have to setuid hddtemp then. Not necessarily. rc-update -a hddtemp default (or /etc/init.d/hddtemp start as root) telnet localhost 7634 See man hddtemp. -Richard -- gentoo-user@gentoo.org mailing list