Linked Questions

3
votes
2answers
3k views

can't shut down or restart while others are logged in [duplicate]

Possible Duplicate: How can I make shutdown not require admin password? When I'm logged in on my own account and try to do Restart or Shutdown from the "Power" menu, while others are also logged ...
0
votes
0answers
56 views

How do I disable need to authentication when an app asked for inhibit of shutdown / suspend [duplicate]

I would like to disable so I never get this popup. And also I would like to know what application has asked for it, so maybe I can stop it. Does anyone know? Edit: A solution can be found here: https:...
64
votes
6answers
34k views

Why do we need to be root in terminal for shutdown and restart?

When we install/remove/update packages or make any changes which require administrative privileges we are prompted for the password of admin user who has the sudo privileges - this happens both via ...
16
votes
3answers
52k views

what is the right way to shutdown ubuntu using the command line? [duplicate]

I know that there are several commands that shutdown an Ubuntu computer. I was just wondering if there is a right one to use and what the implications are for using the other ones; or what the various ...
15
votes
1answer
10k views

What command is executed when shutdown from the graphical menu in 14.04?

I understand that clicking "shut down" from the menu that comes up on clicking the cogwheel triggers the following command to be executed: dbus-send --system --print-reply --dest=org.freedesktop.Hal /...
8
votes
5answers
15k views

Safely close virtualbox machine on host reboot

I'm running Windows 7 inside Virtualbox on Ubuntu 11.10. Everything works fine. I'm running it at startup, but I have a problem with rebooting. When I type sudo reboot now the state of the virtual ...
14
votes
3answers
18k views

Difference between menu shutdown and 'shutdown -h now'

What is the difference between the shutdown menu item and shutdown -h now? The former sometimes hangs up my laptop on Ubuntu 11.10.
3
votes
3answers
8k views

Mr Transmission, please turn off the PC after all downloads are completed!

#!/bin/bash echo "password" | sudo -S halt I pointed this script to "Call script when torrent is completed" option under: Edit > Preferences > Downloading Problem: this script shut-downs the ...
4
votes
3answers
3k views

How to shutdown/restart/suspend ... without authentication or confirmation?

I am looking for a terminal command to shutdown without having to write down my password and without installing any extra programs. As when clicking the shutdown button, why it is not asking me for ...
4
votes
1answer
1k views

How can I run a local command (to run a script) on (just before) log out of a Unity session?

At the risk of posting a duplicate question: How can I run a local script (as the current user) when I log out? I read (and tried) among others: This one (Marton's version), which did perfectly ...
2
votes
3answers
1k views

Prevent shutdown when tvheadend recording / KDE session is active

I am searching for a way to prevent shutdown/standby when tvheadend (or vdr) is currently recording. What I found so far: Prevent shutdown when rsnapshot is running: Which I don't like because it ...
3
votes
2answers
1k views

Lubuntu 14.04 shutdown - Firefox not exiting properly at logout/shutdown

Having a little past experience with Linux I recently decided to install Lubuntu 14.04 LTS to try and get away from windows and got most everything working except one thing so far... I have set ...
1
vote
0answers
1k views

How do I avoid shutdown-inhibition caused by an interrupted, then completed, Ubuntu upgrade?

When I try to suspend/reboot my Ubuntu 18.04, I get a dialog asking for a password: "Authentication is required for suspending [respectively: rebooting] the system while an application asked to ...
1
vote
1answer
425 views

Turn off/sleep after script completion

I have a little script. It's ripped out of a Youtube tutorial, untested, ugly, and not very good. It's not done and not intended for public use. Here it is: #!/bin/bash sudo apt-get -y install git g+...
3
votes
1answer
829 views

Why can ubuntu perform a shutdown from the GUI even though it is prive on the command line? [duplicate]

Possible Duplicate: Difference between menu shutdown and 'shutdown -h now' Why can ubuntu perform a shutdown from the GUI even though it is prive on the command line? By what mechanism ...

15 30 50 per page