[clue-tech] Stopping user shutdown.

Ken MacFerrin lists at macferrin.com
Sun Feb 4 14:30:33 MST 2007


David L. Anselmi wrote:
> When using kdm, there's a setting that allows local users to see a
> shutdown button so they can turn off the machine when they end their
> session.  Anyone know how to temporarily disable that feature?
> 
> Suppose that users normally shut down the machine when they finish with
> it but an administrator is logged in as well (perhaps via ssh) to do
> maintenance.  So the admin wants to block the users' ability to stop the
> machine until the maintenance is done and then enable it.
> 
> I could try changing the kdm setting but I'm not sure it would work on
> already running sessions.
> 

You should be able to disable the shutdown buttons in kde changing
permisssions on the control pipe.

Changing these two files from user:root to root:root should do the trick:
/var/run/xdmctl/dmctl-:0
/var/run/xdmctl/xdmctl-:0

# chown root:root /var/run/xdmctl/*-:0

-Ken



More information about the clue-tech mailing list