I found the command ( shutdown -h 02:00 ) to schedule shutdown my machine but want to know that Is it compulsory that user must have logged in with root login? Or this command would works for all user?
Asked
Active
Viewed 165 times
2 Answers
1
You can do it with using sudo command as following.
sudo shutdown -h 02:00
surely shutdown command can't works for all user.

xiaodongjie
- 2,824
- 1
- 18
- 37
0
Yes, shutdown
command needs root privileges. Same case with reboot
command.