Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

On a fedora server, an web application which is in development stages, get stoked for unknown reasons for the moment. The only solution is to restart the linux machine, but only the root has acces to do that.

Is it possible to give reboot rights to a user group? Can you give me some ideas about how can I do that?

share|improve this question

2 Answers 2

up vote 7 down vote accepted

You can use sudo to do this

as root use the "visudo" commmand to edit the /etc/sudoers file

If you want to allow a group of users access to reboot the computer you can add the following line:

%shutdowngroup ALL=(root) NOPASSWD: /sbin/reboot

(Where "shutdowngroup" is the name of the group that users would need to be a member of)

If you want to grant one use at a time you can add the following line:

username ALL=(root) NOPASSWD: /sbin/reboot
share|improve this answer

You can give root privileges using sudoers file. You can specify the command and username/groupname.

To edit this file, you can use: sudo visudo

For more info, see man visudo and man sudoers.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.