Re: gnome/kde and hiding "power off" menü

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim wrote:
> 
> The GUIs only provide a button/menu item for the user to use, you want
> to remove or restrict the command that they refer to.
> 
> Probably removing the "other/all" users execute permissions on the
> reboot, poweroff, and halt commands, would do the trick.  You'd also
> want to remove the wires from the boxes reset and power switches, and
> make sure that CTRL+ALT+DEL, and probably CTRL+ALT+BACKSPACE are masked
> out.  The latter two, I don't know where to do that.
> 
Ctrl-Alt-Del is in /etc/inittab:

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now


Ctrl-Alt-Backspace is in /etc/X11/xorg.conf:

Section "ServerFlags"
    #DontZap # disable <Crtl><Alt><BS> (server abort)
    #DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
    AllowMouseOpenFail # allows the server to start up even if the
mouse doesn't work

But preventing a user that has physical access to the machine from
rebooting it or shutting it down is rather pointless. They can
always pull the plug to do a shutdown. (Unless you have an internal
UPS.) I would rather let them do a controlled shutdown...

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux