Results 1 to 5 of 5

Thread: Let non-power user turn off computer

  1. #1
    Join Date
    Feb 2006
    Location
    Norway
    Beans
    304
    Distro
    Kubuntu Development Release

    Let non-power user turn off computer

    In 8.04 even a non-power user could turn off the computer even if other people was logged in, not anymore. How do I enable it again. I don't want to let all my user be power-users, but I will let them turn off the computer locally even if someone else is logged in.

  2. #2
    Join Date
    Feb 2006
    Location
    Norway
    Beans
    304
    Distro
    Kubuntu Development Release

    Re: Let non-power user turn off computer

    anyone? Is there a special power group?

  3. #3
    Join Date
    Feb 2006
    Location
    Norway
    Beans
    304
    Distro
    Kubuntu Development Release

    Re: Let non-power user turn off computer

    Not possible?

  4. #4
    Join Date
    Sep 2006
    Location
    Devon, England
    Beans
    69
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Let non-power user turn off computer

    Sure is a way - use sudoers to allow non-root to issue the shutdown command. A very useful thing all round, sudoers, worth looking at in detail sometime.

    Meanwhile for you, as root enter: visudo -s

    At the end of the file being edited enter the line:

    %user ALL=(ALL) NOPASSWD:/sbin/shutdown, /sbin/reboot

    at 'user' insert your user-name. This will allow instant shutdown or reboot. I use two separate launcher icons on the top panel and threw away the usual one with the menu etc. The first (reboot) invokes the command as an application, not in a terminal:

    sudo shutdown -r now

    The second (power down) :

    sudo shutdown -P now

    Neat, fussless, and your choice of cool icons...

  5. #5
    Join Date
    Feb 2006
    Location
    Norway
    Beans
    304
    Distro
    Kubuntu Development Release

    Re: Let non-power user turn off computer

    Thanks should have thought about visudo

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
  •