Results 1 to 6 of 6

Thread: [SOLVED] visudo and shutdown

Threaded View

  1. #1
    Join Date
    Feb 2008
    Beans
    85

    [SOLVED] visudo and shutdown

    Hi people,

    I'd like to shutdown my computer via Kcron job, but when I type sudo shutdown -h now, or sudo halt/reboot it still ask me for a password.

    this is my /etc/sudoers file:

    Code:
    # /etc/sudoers
    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # See the man page for details on how to write a sudoers file.
    #
    
    Defaults	env_reset
    
    # Uncomment to allow members of group sudo to not need a password
    # %sudo ALL=NOPASSWD: ALL
    
    # Host alias specification
    
    # User alias specification
    
    # Cmnd alias specification
    #Cmnd_Alias SYSTEM = /sbin/shutdown, /sbin/halt, /sbin/reboot, /sbin/poweroff
    
    # User privilege specification
    root	ALL=(ALL) ALL
    %admin ALL = (ALL) NOPASSWD:/sbin/shutdown -hP now
    
    # Members of the admin group may gain root privileges
    
    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL
    As you can see, I've tried other stuff too (username: andi/%admin, Cmnd Alias etc) but nothing worked.

    I am running Kubuntu 8.04, KDE 3.59
    Linux andibuntu 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux


    nothing helped:
    http://www.staschke.de/linux/shutdown.html
    http://linux.byexamples.com/archives...sudo-password/

    There must be a solution ey?

    ThXX!
    Last edited by desmane; September 3rd, 2008 at 03:56 PM.

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
  •