See:
I attempted Auto-mounting an ISO with this to prompt for the root password, but that failed.
Note that Msec may have control over reboot.
2009-08-06 ∞
Tested 2009-08-06 on Unity Linux 0.99-alpha1, updated 2009-08-06
mount:
su YOURAPP=/bin/mount APP=mount-root ln -s /usr/bin/consolehelper /usr/bin/$APP cp /etc/pam.d/sudo /etc/pam.d/$APP ln -s $YOURAPP /usr/sbin/$APP
unmount:
YOURAPP=/bin/umount APP=umount-root ln -s /usr/bin/consolehelper /usr/bin/$APP cp /etc/pam.d/sudo /etc/pam.d/$APP ln -s $YOURAPP /usr/sbin/$APP
2009-05-10 ∞
Tested 2009-05-10 on PCLinuxOS 2007, updated 2009-04
I have an Openbox “edit hotkeys” hotkey, which can now ask for a password like so:
(Synaptic)
YOURAPP=/usr/bin/mousepad APP=mousepad-root su ln -s /usr/bin/consolehelper /usr/bin/$APP cp /etc/pam.d/synaptic /etc/pam.d/$APP ln -s $YOURAPP /usr/sbin/$APP
Now my hotkeys could have this:
<keybind key="A-S-F5"> <action name="Execute"> <command>mousepad-root /etc/xdg/openbox/rc.xml</command> </action> </keybind>

ported