visudo command

You need to use the sudo command to grant a permission to other users to shutdown your server. The sudo command allows a permitted user to execute a command as the superuser or another user, as specified in the /etc/sudoers file. Login as a root user and type the visudo command to edit the sudoers file.


Have you ever wondered why shutdown account exists on Linux server, especially under Red Hat Enterprise Linux distribution?

The answer is quite simple – shutdown account can shutdown server. Here is how you can enable the shutdown account: