Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Ubuntu Shutdown password?

How do I add a password to the shutdown of my computer? It's Ubuntu 8.04 desktop. Thanks.

Update:

David do you even know what you are talking about? Of course it has root privilges.

I want to enable a password for when I shutdown.

Update 2:

Wait a sec, so you mean if it only has root privileges it should prompt for a password?

Update 3:

Whatever, I give up with YahooANSWERS

I'll just google like all the smart people.

3 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    Whoa. David was suggesting that you change the privileges on the shutdown command in /sbin so that only root (or a member of a group with equivalence) can execute it. You would make the changes via chmod or the file-manager of choice in your distribution. If you did this, in *theory* you would have to "sudo shutdown -h now" and you would be prompted for the root password.

    However, try this instead:

    Step1:

    Open /etc/X11/gdm/gdm.conf in a text editor and find the [greeter] section. Make sure that there is a line which says SystemMenu = false. This line will ensure that the gdm login screen will not have the option for shutting down the system etc.

    Step 2:

    If you have a laptop, or an acpi system on your computer, then go to /etc/acpi and disable the power button, so that, when someone presses the power button, the system does not shutdown. You can disable this easily by doing chmod 000 /etc/acpi/powerbtn.sh

    Step 3:

    Now edit /etc/inittab

    and find the lines that say:

    #Trap CTRL-ALT-DELETE

    ca::ctrlaltdel:/sbin/shutdown -t3 -r now

    And change it to read:

    #Disallow CTRL-ALT-DELETE

    ca::ctrlaltdel:/bin/echo “ctrl-alt-delete has been disabled” .

    This will effectively prevent users from changing to a console screen and using ctrl+alt+delete to shutdown the system.

    Step 4:

    Execute the following commands:

    sudo chgrp admin /sbin/halt /sbin/shutdown

    sudo chmod 550 /sbin/halt /sbin/shutdown

    Step 5:

    Use the Configuration Editor (Applications -> System Tools -> Configuration Editor) to edit the preference apps->gnome-session->options->logout_option to “logout” instead of “shutdown”.

    Now only a superuser (Admin) can shutdown the system, using the command:

    $sudo shutdown -t3 -r now

  • 1 decade ago

    Just make sure that the executable for shutdown has root privileges only. That should do it.

  • 5 years ago

    the only selection i will think of of is going into risk-free mode dont type the username and password of the single your attempting to log onto in case you dont bear in techniques typing and administrator password your advantageous in username type- administrator and no password except entered one earlier it is going to circulate surfing then administration panel consumer money owed to alter the password or commence run administration userpasswords2 click on the username u choose for to alter the password for then on the backside reset password then your finished if this dont artwork u proberley have a trojan virus on your device to hack into your computing gadget i dont understand seem on youtube and type a thank you to hack a homestead windows xp computing gadget anyhow i'm hoping this helped solid success

Still have questions? Get your answers by asking now.