Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: shutdown without su priv

  1. #11
    Join Date
    Jun 2007
    Beans
    17,337

    Re: shutdown without su priv

    Quote Originally Posted by kpatz View Post
    I just tried it in my 16.04 VM. If I launch a terminal from the desktop and run "shutdown -r now" it shuts down with no superuser privileges required.

    If I access a shell via ssh and run "shutdown -r now" it doesn't work without sudo.

    So, it's only when you're on the desktop itself that you can shutdown without privileges. Remote access still requires sudo.
    Correct, the same from a tty, sudo is required. So not sure that this thread is about anything. (certainly no mention of server, ect.
    The only issue n the past was shutting down with other users logged in & that has been addressed to extent possible.

  2. #12
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: shutdown without su priv

    It's worked this way for ages

  3. #13
    Join Date
    Sep 2016
    Location
    Australia
    Beans
    69

    Re: shutdown without su priv

    i do apologise
    seems my dementia got in the way
    gui shutdown doesnt need su but terminal allows switches which could potentially be damaging to the system such as auto-format etc
    Much thanks on your feedback - shows me how much i still need to learn
    cheers c

  4. #14
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: shutdown without su priv

    Quote Originally Posted by colmax View Post
    i do apologise
    seems my dementia got in the way
    gui shutdown doesnt need su but terminal allows switches which could potentially be damaging to the system such as auto-format etc
    Much thanks on your feedback - shows me how much i still need to learn
    cheers c
    No need to apologise as in previous versions of Ubuntu, or certainly previous LTS versions, those shutdown commands do need root permissions and authorisation, which is why I was surprised and said as such in post #2.

    I am still running 14.04 (Xubuntu) so was not aware of this change before your thread was started.

Page 2 of 2 FirstFirst 12

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
  •