cpufreq-set runed as a normal user

http://www.pclinuxos.com/forum/index.php?topic=90020.0

Hi,

you can set the sticky bit on /usr/bin/cpufreq-set,
but you are going to introduce a security risk, you will take the risk on your own,
from a root console:
chmod 4755 /usr/bin/cpufreq-set

after this change when a 'non admin user' will execute cpufreq-set,
will do that 'on behalf' of root.

AS
##SLACKWARE irc.freenode.net

pupit: is there a better/more-secure way of "chmod 4755 /usr/bin/cpufreq-set" to run cpufreq-set as a normal user ?
mancha: linux is a multi-user environment for a reason, be root. otherwise do what you normally do in these cases: use sudo
alisonken1lap: "su -" is also your friend
mancha: echo "pupit ALL = PASSWD: /usr/bin/cpufreq-set" >> /etc/sudoers
mancha: use NOPASSWD instead, for added thrills
pupit: thanks mancha :) I was heading to some other solution which would be without sudo but i guess its inevitable
mancha: don't be afraid of sudo, it doesn't bite.
elkng: "%wheel ALL=(ALL) NOPASSWD: ALL" <- all my problems got away
elkng: as someone said: "no pain, no gain"
hiptobecubic: elkng, you should be a sysadmin with innovative solutions like that
hiptobecubic: elkng, or a surgeon maybe
pupit: lol hiptobecubic
alienBOB: On my laptop I love living dangerously and that line shown by elkng is in my sudoers file
alienBOB: I control who is a member of wheel anyway

Нема коментара:

Постави коментар