1
vote
1answer
40 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 ...
37
votes
4answers
4k 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 ...
0
votes
0answers
21 views

Reeboot or Shutdown without Password [duplicate]

To run the command poweroff or reboot one needs to be super user. Is there anyway I can run this as a normal user? I just dont want to sudo and enter password everytime I reboot or poweroff.
0
votes
1answer
36 views

How can I tell my laptop to shutodwn after finishing running a non-root process

I'd like to be able to say: ./run_process.sh; sudo shutdown -P now but the call to sudo will ask for my password and then my laptop won't shut down because it's waiting for my password. How can I ...
0
votes
1answer
5k views

Shutdown over SSH [duplicate]

I just installed a fresh ubuntu server 12.04. I log in over SSH and use sudo -s to get root access. Then I use shutdown now and the server closes the connection. I cannot access the server over SSH, ...
0
votes
3answers
2k views

sudo shutdown vs pressing power button

I have a headless Ubuntu server running 64 bit Ubuntu 12.04 server edition, and I connect to the server via SSH from my Windows laptop. Sometimes when I would like to turn off the server and my ...
15
votes
3answers
15k views

Shutdown from terminal without entering password?

I have desktop edition of Ubuntu. I like the Terminal so that that I prefer to shutdown my computer with the shutdown command. However when I type shutdown now it prompts me to enter my password.Is ...
5
votes
1answer
8k views

how to shutdown a linux machine, including the root password, in 1 line?

How do you include the root password, say for shutting down an ubuntu machine? like, sudo shutdown now is it possible to include the password on this 1 line? like an extra parameter? reason for ...
5
votes
2answers
515 views

How does the shutdown button works without asking for password? [duplicate]

Possible Duplicate: How to shutdown/restart/suspend … without authentication or confirmation? If shutdown asks for password (and so does every program which has the option to turn ...
5
votes
4answers
8k views

How to give shutdown privileges to a user?

I am using Ubuntu 11.04. I want to run a script which checks for a running process and shuts down the system when that process ends. To do this, the user requires shutdown access so that the script ...
5
votes
5answers
2k views

Disabling shutdown command for all users, even root - consequences?

I would like to disable the shutdown command for all users, even root, on an Ubuntu Server installation. The reason I want to do this is to ensure that I don't get into the habit of shutting down the ...