You are not logged in.

#1 2012-10-16 06:48:02

Demon
Member
From: Republic of Srpska, BA
Registered: 2008-03-02
Posts: 246

[SOLVED] Disallow shutdown/reboot if users logged in

How do I disallow shutdown/reboot/restart/hibernate for some users if there are other users logged in? KDE only issues a warning about this, but still allowing users to shutdown/reboot and break active sessions.

Last edited by Demon (2012-10-16 12:26:03)

Offline

#2 2012-10-16 06:54:52

Heinrichmeyer
Member
Registered: 2012-05-16
Posts: 18

Re: [SOLVED] Disallow shutdown/reboot if users logged in

IMO you cannot realistically disallow shutdown for people having physical access to your box

Offline

#3 2012-10-16 10:12:05

birdflesh
Member
From: Greece
Registered: 2010-08-04
Posts: 98

Re: [SOLVED] Disallow shutdown/reboot if users logged in

In /usr/share/config/kdm/kdmrc check for "AllowSdForceNow" and "DefaultSdMode".

Offline

#4 2012-10-16 12:25:35

Demon
Member
From: Republic of Srpska, BA
Registered: 2008-03-02
Posts: 246

Re: [SOLVED] Disallow shutdown/reboot if users logged in

Thanks a ton!!! I've checked kdmrc.pacnew file and there were all options and explanations.  I'm using these:

[X-*-Core]
AllowNullPasswd=false
AllowRootLogin=false
AllowShutdown=Root
AllowSdForceNow=Root
DefaultSdMode=Schedule
ScheduledSd=Optional
AutoReLogin=false

to gain exactly what I wanted.

Offline

Board footer

Powered by FluxBB