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:
Now, I try to logout and log back in, and typeCode:user ALL=NOPASSWD: /sbin/shutdown
orCode:shutdown -r now
The above command giving an error message: shutdown: need to be rootCode:/sbin/shutdown -r now
I think that error message comes up because the shutdown file is owned by root, right? or wrong?
I try:
orCode:sudo shutdown -r now
The above command asking me for [sudo] passwordCode:sudo /sbin/shutdown -r now
Anything that I miss here?
Bookmarks