Главная » Linux » Gnome 2.28 won't shutdown if other users are logged in

Gnome 2.28 won't shutdown if other users are logged in

12:51

shitz

 

If I have my user logged in to Gnome and my wife switches users and then wants to shutdown the box, Gnome 2.28 does not allow this giving the following box, "System policy prevents stopping the system when other users are logged in."

Thanks for the reply. Here's what I did:

# nano /var/lib/polkit-1/localauthority/50-local.d/shutdown.pkla

[system shutdown privs]
Identity=unix-group:users
Action=org.freedesktop.consolekit.system.stop-multiple-users
ResultAny=no
ResultInactive=no
ResultActive=yes
# nano /var/lib/polkit-1/localauthority/50-local.d/restart.pkla

[system restart privs]
Identity=unix-group:users
Action=org.freedesktop.consolekit.system.restart-multiple-users
ResultAny=no
ResultInactive=no
ResultActive=yes

After a restart of hal everything works!  THANKS AGAIN!  I added this great information to the Gnome 2.28 Changes wiki article.  Hopefully others will find it useful.

(c)