1

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?

Wit Wikky
  • 113

2 Answers2

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.