* CHOWN PB
@ 2003-09-18 22:46 Toula Michael
2003-09-19 6:47 ` Michael Filz
2003-09-28 11:53 ` Dominik Brodowski
0 siblings, 2 replies; 4+ messages in thread
From: Toula Michael @ 2003-09-18 22:46 UTC (permalink / raw)
To: cpufreq
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: CHOWN PB
2003-09-18 22:46 CHOWN PB Toula Michael
@ 2003-09-19 6:47 ` Michael Filz
2003-09-19 7:06 ` Norbert Preining
2003-09-28 11:53 ` Dominik Brodowski
1 sibling, 1 reply; 4+ messages in thread
From: Michael Filz @ 2003-09-19 6:47 UTC (permalink / raw)
To: cpufreq
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 19 September 2003 00:46, you wrote:
> 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
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-----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: CHOWN PB
2003-09-19 6:47 ` Michael Filz
@ 2003-09-19 7:06 ` Norbert Preining
0 siblings, 0 replies; 4+ messages in thread
From: Norbert Preining @ 2003-09-19 7:06 UTC (permalink / raw)
To: cpufreq
On Fre, 19 Sep 2003, Michael Filz wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: CHOWN PB
2003-09-18 22:46 CHOWN PB Toula Michael
2003-09-19 6:47 ` Michael Filz
@ 2003-09-28 11:53 ` Dominik Brodowski
1 sibling, 0 replies; 4+ messages in thread
From: Dominik Brodowski @ 2003-09-28 11:53 UTC (permalink / raw)
To: Toula Michael; +Cc: cpufreq
On Fri, Sep 19, 2003 at 12:46:47AM +0200, Toula Michael wrote:
> 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
man 8 sudo
Dominik
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-28 11:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-18 22:46 CHOWN PB Toula Michael
2003-09-19 6:47 ` Michael Filz
2003-09-19 7:06 ` Norbert Preining
2003-09-28 11:53 ` Dominik Brodowski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.