CHOWN PB
Hi,
Ok here is the deal :
I would like to allow users from a given group (let say the cpufreq group) to have write acces to /proc/cpufreq and /proc/sys/cpu/0/speed...I try the following :
$ chown root:cpufreq /proc/cpufreq $ chmod 664 /proc/cpufreq And then... $ ls -l /proc/cpufreq ...show me that nothing changes.
Any idea on how to solve this problem ? Because login as root every time I want to change the frequency is quite boring ( I would like to be able to use button of my window manager to change it), and because of that other people that use my laptop can change the frequency because they don't have the root passwd... Thx in advance...
Mike
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 12 lines · you
Hi,
Ok here is the deal :
I would like to allow users from a given group (let say the cpufreq group) to have write acces to/proc/cpufreqand/proc/sys/cpu/0/speed...Itry the following :$ chown root:cpufreq /proc/cpufreq $ chmod 664 /proc/cpufreq And then... $ ls -l /proc/cpufreq ...show me that nothing changes.
Quoted 7 lines
Any idea on how to solve this problem ? Because login as root every time I want to change the frequency is quite boring ( I would like to be able to use button of my window manager to change it), and because of that other people that use my laptop can change the frequency because they don't have the root passwd...
Thx in advance...
Mike
This is one of the few cases where suid root is really useful. Put everything you want in a script, suid it and put it in the bin directory of your choice. If you set the ownership of the script to root.cpufreq you might even be able to restrict its use to the group; if not you would have the script to check for allowed users or something.
- --
GPG 1.2.1 signed
Fingerprint: 60B4 D8E3 9617 900C 6726 168F D677 5AAD D40F CCE7 Certserver : ldap://certserver.pgp.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/aqZl1ndardQPzOcRAsJoAJ0V5ZVh+sq5oUQJz2KIBCA7pFfPrwCg9vjg CKlc8BOLk1gaOszRyITjv14=
=w4YI
-----END PGP SIGNATURE-----
Quoted 2 lines · Michael Filz
This is one of the few cases where suid root is really useful. Put everything you want in a script, suid it and put it in the bin directory of your choice.
There is no "setuid script" because the interpreter is not setuid. That's the reason why there is a setuid-perl.
You have to write a binary wrapper, or use perl with setuid-perl.
Best wishes
Norbert
-------------------------------------------------------------------------------
Norbert Preining <preining AT logic DOT at> Technische Universität Wien
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
HAGNABY (n.)
Someone who looked a lot more attractive in the disco than they do in your bed the next morning.
--- Douglas Adams, The Meaning of Liff
Quoted 12 lines · Toula Michael
Hi,
Ok here is the deal :
I would like to allow users from a given group (let say the cpufreq group) to have write acces to/proc/cpufreqand/proc/sys/cpu/0/speed...Itry the following :$ chown root:cpufreq /proc/cpufreq $ chmod 664 /proc/cpufreq And then... $ ls -l /proc/cpufreq ...show me that nothing changes.
Quoted 7 lines
Any idea on how to solve this problem ? Because login as root every time I want to change the frequency is quite boring ( I would like to be able to use button of my window manager to change it), and because of that other people that use my laptop can change the frequency because they don't have the root passwd...
Thx in advance...
Mike
man 8 sudo
Dominik