SOLVED ! (Re: Locking down F14 shutdown options)

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

 



Here's how I solved this The Right Way (tm), in case anyone else
searches for this and finds this thread.

On recent Fedoras (F14, F13, not sure about others) this is done by
hacking PolicyKit.

Shutdown and Restart are configured by editing

	/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy

and changing

	<allow_active>yes</allow_active>
to
	<allow_active>auth_admin_keep</allow_active>

for both "Stop the system" and for "Restart the system". There are two
other actions in there (stop/restart when others are logged in), which
already have the more restrictive "auth_admin_keep" authorization
setting.

Suspend and Hibernate are done in the same fashion, but the file to
edit is

	/usr/share/polkit-1/actions/org.freedesktop.upower.policy

At this point, one no longer has to worry about hiding or removing the
gnome "power" button from either the gdm greeter or a user's panel.
When the button is clicked and any of
shutdown/restart/suspend/hibernate is selected, the system will ask
for the root password before proceeding, which is exactly what I was
looking for.

Thanks to all who offered suggestions and ideas that eventually helped
me pick the right keywords to google for :)

--Gabriel

> On Fri, 14 Jan 2011 17:59:31 -0500 Gabriel L. Somlo wrote:
> 
> Can I modify F14 to require the root password when either
> Suspend/Restart/Shutdown is selected via the Shutdown Options
> (lower-right corner of GDM login screen), or when a user
> selects System -> ShutDown -> Suspend/Hibernate/Restart/Shutdown
> from the gnome-panel ?
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux