found anyone can pass shutdown commands with switches to ubuntu 16.04 without su
just seems a big control issue
shutdown -r now
shutdown -h now
Cheers c
found anyone can pass shutdown commands with switches to ubuntu 16.04 without su
just seems a big control issue
shutdown -r now
shutdown -h now
Cheers c
I admit I was surprised to see your post and immediately tried this out, and you are correct, with no query of "Are you sure?" or anything like that.
I will investigate further.
Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads --- System-Info-Script
Not seeing any systemd bugs in Launchpad that match this description.
Perhaps you are the first to discover....
Here you go. It seems it is a feature, not a problem.
http://askubuntu.com/questions/77474...s-in-ubuntu-16
http://askubuntu.com/questions/78905...again-in-16-04
It doesn't tell us why, but does seem to suggest it is a deliberate decision.
Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads --- System-Info-Script
Xubuntu 22.04, ArchLinux ♦ System76 hardware, virt-manager/KVM, VirtualBox
When your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."
And if more than one user was logged in it could be a problem in a desktop.
Thinking about that; can more than one user be logged in at the same time? I have only one user on any of my computers so I don't know the answer to that question.
Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads --- System-Info-Script
If another user is logged in the command won't complete & you're informed of such. It does also provide & inform of a systemctl command to override & do a shutdown/reboot if desired.
It would be impracticable to require root auth to restart or shut down, how would a non admin user do so, wait until admin user was available?
Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads --- System-Info-Script
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.
Bookmarks