e

Shutdown Privileges: Non Admin Users

If you have added users to Bodhi Linux and need to deny these users access to sudo you may have noticed these lesser privileged users are unable to shutdown, reboot, suspend or hibernate the computer. Fortunately, there is an easy fix.

First, we create a group power. Any users we add to this group we will allow access to the system section of Bodhi's Menu, that is they will have the ability to shutdown, reboot, suspend or hibernate the computer. So to create this group, from an administrative account:


sudo groupadd power


Now assume we have a non-administrator user Joe, to add Joe to the power group:


sudo adduser Joe power


Now we need to configure Enlightenment so that all users in the power group can shutdown the computer. Open Enlightenment's /etc/enlightenment/sysactions.conf file as root in the text editor of your choice, leafpad for the purposes of this example:


gksudo leafpad /etc/enlightenment/sysactions.conf


Once the file opens add the line:


group:    power  allow: halt reboot suspend hibernate


to the bottom of the group section below the line group: plugdev allow: *


Now save the file sysactions.conf and user Joe will be able to shutdown the computer.

This gives all users in the group power permission to halt, reboot, suspend as well as hibernate. If you wish you can remove whichever of these you don't desire your lesser privileged users to have.


User Feedback

user_-_shutdown_privileges
Did you find this article helpful?
Yes, right on the money!
 
90%(9)
Somewhat. Needs work.
 
10%(1)
Not really
0%(0)
Not at all.
0%(0)

If you would like to comment or make further suggestions, please leave a note on our Comments page (you will have to Create an Account if you haven't already).


Original wiki by ylee

 
user_-_shutdown_privileges.txt · Last modified: 2012/01/03 17:22 by rbtylee · [Old revisions]


© Copyright Bodhi Linux 2012. All Rights Reserved - Hosted by vaultnetworks