monmor.blogg.se

How to cancel shutdown
How to cancel shutdown











how to cancel shutdown

Now try to execute shutdown and reboot commands as normail user ( tecmint). # Allow members of group sudo to execute any command Cmnd_Alias SHUTDOWN = /sbin/shutdown,/sbin/reboot,/sbin/halt,/sbin/poweroff

how to cancel shutdown

# vi /etc/sudoersĪdd these lines to Command Aliases section. The easiest way to disable shutdown and reboot commands using the /etc/sudoers file, here you can specify a user ( tecmint) or group ( developers) which are not allowed to execute these commands. Disable Shutdown and Reboot Commands in Linux

how to cancel shutdown

In this article, we will show how to disable shutdown and reboot commands for normal users in Linux. This is not ideal setting especially on servers, it must be something to worry about especially for a system administrator. The shutdown command schedules a time for a Linux system to be powered down, it may as well be used to halt, power-off or reboot the machine when invoked with particular options and reboot instructs the system to restart.Ĭertain Linux distros such as Ubuntu, Linux Mint, Mandriva just to mention but a few, make it possible to reboot/halt/shutdown the system as a normal user, by default.













How to cancel shutdown