Resolution located at HERE
Hi All,
I've search through google, and even through this ubuntu forum, but seems all suggestions still not giving me any solution
I'm using Ubuntu server version.
I want to be able to shutdown without asking for password, this is what I do:
sudo visudo and add the following:
Code:
user ALL=NOPASSWD: /sbin/shutdown
Now, I try to logout and log back in, and type
or
Code:
/sbin/shutdown -r now
The above command giving an error message: shutdown: need to be root
I think that error message comes up because the shutdown file is owned by root, right? or wrong?
I try:
Code:
sudo shutdown -r now
or
Code:
sudo /sbin/shutdown -r now
The above command asking me for [sudo] password
Anything that I miss here?
Bookmarks