On Mon, Sep 15, 2003 at 09:06:39PM +0200, Thomas Morin wrote:
> Hi,
> 
> I've been reading some recent threads on this list proposing solutions
> to make it possible to shutdown (or reboot) their workstation directly
> from the gnome session logout dialog.
> 
> Some solutions proposed were based on some sudo wrapper (or PAM trick) 
> called by gnome-session at logout time. This setup has some drawbacks since 
> it gives the ability of shutting down the server to more people than 
> necessary for this feature. Moreover the gdm PostSession script might not 
> be ran. Making gdm do the shutdown itself at session logout avoid some 
> permission related problems.
> 
> Here is the principle I propose :
>  - at logout, gnome-session proposes the reboot and halt options to the user
>  - if halt [or reboot] is chosen, a $HOME/.gdm-halt file [or .gdm-reboot]
>    file is created
>  - in the gdm PostSession script (which is run by gdm as root), the
>    existence of those files is tested
>  - if one of them exists and if the configuration allows, shutdown
>    (or reboot) of the workstation is triggered

Yep, if you look back to discussions about this on this list now one or
two years old, i have been suggesting just this kind of stuff, altough
at the time nobody appeared to care. Thanks for taking it one step
further to realization.

Friendly,

Sven Luther


Reply via email to