Results 1 to 10 of 15

Thread: [SOLVED] shutdown without password

Threaded View

  1. #1
    Join Date
    Apr 2009
    Beans
    80
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Angry [SOLVED] shutdown without password

    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
    Code:
    shutdown -r now
    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?
    Last edited by televisi; June 8th, 2009 at 06:31 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •