You are not logged in.
Hello,
I'd like to disallow users to poweroff system but to allow them to run hibernate script. How can I do this?
Regards,
mdv
Offline
With sudo - although they will always be able to just turn off the machine, won't they?
Offline
That's why I don't want to use sudo.
Offline
With sudo - although they will always be able to just turn off the machine, won't they?
What do you mean? You don't have to give them permissions to use all commands...for instance, using <code>sudo</code>I allow anyone that's in a group called <code>shutdown</code> to power off my machine from Xfce without needing a password:
%shutdown ALL = (root) NOPASSWD: /opt/xfce4/libexec/xfsm-shutdown-helper
You could apply the same principal to the hybernation command...
--==EDIT==--
DOH! I think I misunderstood you tomk...you're right, they could always just power off the machine physically if it is in front of them (not by using <code>sudo</code>).
Offline
That was my point alright - that big old power switch will always be there...........
Offline
You're right. Thank you.
Offline