Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Is it possible in Linux to require a password to shutdown/restart/logoff the computer? Thanks!...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2005
    Posts
    20

    Password to Shutdown?


    Is it possible in Linux to require a password to shutdown/restart/logoff the computer?

    Thanks!

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Shutdown can only be run by root in the terminal.

    As far as shutting down from your X Server with their reset button, I can only help you out with KDE.

    In the KDE Control Panel, go to KDE Components --> Session Manager. Unselect "Offer Shutdown Options". My assumption is that this will rid you of shutdown options.

  3. #3
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    In some distros like fedora, mandriva etc. you can run the command "poweroff" as a normal user in the terminal... I dunno how to disable this one thought, some fedora/mandriva guru might help you out... Tell us which distro you're using and if youre using a loginmanager/which login manager...

  4. #4
    Linux Enthusiast puntmuts's Avatar
    Join Date
    Dec 2004
    Location
    Republic Banana
    Posts
    562

    Re: Password to Shutdown?

    Quote Originally Posted by MJanofsky
    Is it possible in Linux to require a password to shutdown/restart/logoff the computer?

    Thanks!
    Yes that is possible.

  5. #5
    Just Joined!
    Join Date
    May 2005
    Posts
    20

    Re: Password to Shutdown?

    Quote Originally Posted by puntmuts
    Quote Originally Posted by MJanofsky
    Is it possible in Linux to require a password to shutdown/restart/logoff the computer?

    Thanks!
    Yes that is possible.
    How?

  6. #6
    Linux Engineer rong's Avatar
    Join Date
    Feb 2005
    Location
    California
    Posts
    803

    Re: Password to Shutdown?

    Quote Originally Posted by MJanofsky
    Quote Originally Posted by puntmuts
    Quote Originally Posted by MJanofsky
    Is it possible in Linux to require a password to shutdown/restart/logoff the computer?

    Thanks!
    Yes that is possible.
    How?
    Tell us what Linux distro you are using and we can tell you.
    registered Linux user #388382

    Have you checked here first?

  7. #7
    Just Joined!
    Join Date
    May 2005
    Posts
    20
    Fedora Core 3. Thanks!

  8. #8
    Just Joined!
    Join Date
    Apr 2005
    Location
    Atlanta
    Posts
    55

    Re:

    Isn't there a file named shutdown.allow file that you can modify to allow that?

  9. #9
    Linux Engineer
    Join Date
    Jan 2005
    Location
    Chicago (USA)
    Posts
    1,028
    Change the permissions of /sbin/halt.

  10. #10
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    Quote Originally Posted by a thing
    Change the permissions of /sbin/halt.
    And /sbin/poweroff and /sbin/reboot, and maybe /sbin/shutdown if not /sbin/shutdown stops you by default.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •