(2012/05/17 1:45), Olivier Duchateau wrote:
To enable shutdown/restart, just replace 'PUTYOURGROUPHERE' with your
 own user group, and create a .pkla file under
 /usr/local/etc/polkit-1/localauthority/50-local.d (use mkdir -p to
 create this).
The file "org.freedesktop.consolekit.pkla" was created by the following contents.

[Local restart]
  Idendity=unix-group:power
  Action=org.freedesktop.consolekit.system.restart
  ResultAny=yes
  ResultInactive=no
  ResultActive=yes

  [Local shutdown]
  Idendity=unix-group:power
  Action=org.freedesktop.consolekit.system.stop
  ResultAny=yes
  ResultInactive=no
  ResultActive=yes

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

  [Local shutdown - multiple]
  Idendity=unix-group:power
  Action=org.freedesktop.consolekit.system.stop-multiple-users
  ResultAny=yes
  ResultInactive=no
  ResultActive=yes

  The user who logs in was added to the power group.

However, the button of a reboot and a shutdown is invalid and it cannot push.
  If it carries out, how can it push?


--
Takashi Fujita
rina.invers...@gmail.com
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to