Re: xdm halt & reboot buttons

2016-07-04 Thread Alexander Hall
On July 4, 2016 11:06:28 PM GMT+02:00, Alexander Hall wrote: > > >On July 4, 2016 5:51:06 PM GMT+02:00, Bob Beck >wrote: >>> >>> Thinking of it again, you could possibly just use the action >>arguments for >>> a more generic "execute-program" action. >>> >> >>Ahhh.. are you insane? The way yo

Re: xdm halt & reboot buttons

2016-07-04 Thread Alexander Hall
On July 4, 2016 5:51:06 PM GMT+02:00, Bob Beck wrote: >> >> Thinking of it again, you could possibly just use the action >arguments for >> a more generic "execute-program" action. >> > >Ahhh.. are you insane? The way you get a generic "execute program" >action is to LOG IN TO THE DAMN MACHINE!

Re: xdm halt & reboot buttons

2016-07-04 Thread Bob Beck
I mean, in all seriousness, what you want to do is probably more safely accomplished by having a way for the "owner" of the machine to configure it to just log them in without a password, and then pop a program like xlock that locks their screen and presents the hibernate suspend and other such bul

Re: xdm halt & reboot buttons

2016-07-04 Thread Bob Beck
> > Thinking of it again, you could possibly just use the action arguments for > a more generic "execute-program" action. > Ahhh.. are you insane? The way you get a generic "execute program" action is to LOG IN TO THE DAMN MACHINE! Why don't you guys just make an option so someone can set up thei

Re: xdm halt & reboot buttons

2016-07-04 Thread Theo de Raadt
> On Mon, Jul 4, 2016 at 6:42 AM, Craig Skinner wrote: > > On 2016-07-02 Sat 11:21 AM |, Bob Beck wrote: > >> On Saturday, 2 July 2016, Craig Skinner wrote: > >> > > >> > xmessage is now run as '_x11', shutdown as 'operator', and the status > >> > items as 'nobody'. Only user _x11's xmessage wind

Re: xdm halt & reboot buttons

2016-07-04 Thread Bob Beck
On Mon, Jul 4, 2016 at 6:42 AM, Craig Skinner wrote: > On 2016-07-02 Sat 11:21 AM |, Bob Beck wrote: >> On Saturday, 2 July 2016, Craig Skinner wrote: >> > >> > xmessage is now run as '_x11', shutdown as 'operator', and the status >> > items as 'nobody'. Only user _x11's xmessage windows are pkil

Re: xdm halt & reboot buttons

2016-07-04 Thread Craig Skinner
On 2016-07-02 Sat 11:21 AM |, Bob Beck wrote: > On Saturday, 2 July 2016, Craig Skinner wrote: > > > > xmessage is now run as '_x11', shutdown as 'operator', and the status > > items as 'nobody'. Only user _x11's xmessage windows are pkilled. > > > > Do not use nobody. > > that is a very bad pra

Re: xdm halt & reboot buttons

2016-07-02 Thread Alexander Hall
On Sat, Jul 02, 2016 at 01:02:57AM +0200, Alexander Hall wrote: > On Fri, Jul 01, 2016 at 03:38:26PM +0200, Matthieu Herrb wrote: > > On Fri, Jul 01, 2016 at 02:22:57PM +0100, Craig Skinner wrote: > > > Hi Alexander, > > > > > > On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: > > > > > > > >

Re: xdm halt & reboot buttons

2016-07-02 Thread Bob Beck
Do not use nobody. that is a very bad practice. may as well call nobody NFS. On Saturday, 2 July 2016, Craig Skinner wrote: > Hello all, > > On 2016-07-01 Fri 18:01 PM |, Sebastien Marie wrote: > > > > It is the fact that xmessage would be run as root that worry me a bit. > > [snip] > > > > No

Re: xdm halt & reboot buttons

2016-07-02 Thread Craig Skinner
On 2016-07-01 Fri 15:38 PM |, Matthieu Herrb wrote: > > If you spend some time providing a set of nice resouces for xmessages > and keep it minimalistic, I think we can include your suggestion. I've > been waiting for other comments. > Thanks Matthieu. I wasted a while making an arse of /etc/X11

Re: xdm halt & reboot buttons

2016-07-02 Thread Craig Skinner
Hello all, On 2016-07-01 Fri 18:01 PM |, Sebastien Marie wrote: > > It is the fact that xmessage would be run as root that worry me a bit. > [snip] > > Now, as xmessage(1) would be only used to provide UI to user, it should > be possible to run it as _x11 (or other unpriviligied user). The usefu

Re: xdm halt & reboot buttons

2016-07-01 Thread Alexander Hall
On Fri, Jul 01, 2016 at 03:38:26PM +0200, Matthieu Herrb wrote: > On Fri, Jul 01, 2016 at 02:22:57PM +0100, Craig Skinner wrote: > > Hi Alexander, > > > > On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: > > > > > > 1. xmessage has an sometimes useful, but in general awful, interface. > > > >

Re: xdm halt & reboot buttons

2016-07-01 Thread Craig Skinner
Hi Patrick, On 2016-07-01 Fri 10:38 AM |, patrick keshishian wrote: > > Only comment I (as a user) have, has to do with liking the > default look as-is. Same for me. It's not pretty, but it's in keeping with the rest of the landscape. Some CSS type guru could refashion the whole thing. > I like

Re: xdm halt & reboot buttons

2016-07-01 Thread Craig Skinner
On 2016-07-01 Fri 18:01 PM |, Sebastien Marie wrote: > > It is the fact that xmessage would be run as root that worry me a bit. Good point Sebastien. > Now, as xmessage(1) would be only used to provide UI to user, it should > be possible to run it as _x11 (or other unpriviligied user). The usefu

Re: xdm halt & reboot buttons

2016-07-01 Thread Craig Skinner
On 2016-07-01 Fri 14:22 PM |, Craig Skinner wrote: > On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: > > > > Maybe just add a button or two to the xdm login panel instead? > > > > Good idea. I'll try to alter that instead Suggestions welcome! > Ugh,... that's beyond me. >From xdm(1),

Re: xdm halt & reboot buttons

2016-07-01 Thread patrick keshishian
On 7/1/16, Matthieu Herrb wrote: > On Fri, Jul 01, 2016 at 02:22:57PM +0100, Craig Skinner wrote: >> Hi Alexander, >> >> On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: >> > >> > 1. xmessage has an sometimes useful, but in general awful, interface. >> >> Aye,... simple, in base & functional. >

Re: xdm halt & reboot buttons

2016-07-01 Thread Sebastien Marie
On Fri, Jul 01, 2016 at 03:38:26PM +0200, Matthieu Herrb wrote: > > If you spend some time providing a set of nice resouces for xmessages > and keep it minimalistic, I think we can include your suggestion. I've > been waiting for other comments. Personally I would be a bit reluctant to xmessage s

Re: xdm halt & reboot buttons

2016-07-01 Thread Matthieu Herrb
On Fri, Jul 01, 2016 at 02:22:57PM +0100, Craig Skinner wrote: > Hi Alexander, > > On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: > > > > 1. xmessage has an sometimes useful, but in general awful, interface. > > Aye,... simple, in base & functional. > > The prettiness factor can be cosmeti

Re: xdm halt & reboot buttons

2016-07-01 Thread Craig Skinner
Hi Alexander, On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: > > 1. xmessage has an sometimes useful, but in general awful, interface. Aye,... simple, in base & functional. The prettiness factor can be cosmetically altered with Xmessage* lines in /etc/X11/xdm/Xresources. See '! xmessage re

Re: xdm halt & reboot buttons

2016-06-30 Thread Alexander Hall
On Thu, Jun 30, 2016 at 04:43:12PM +0100, Craig Skinner wrote: > Hiya, > > On 2016-06-29 Wed 14:46 PM |, Craig Skinner wrote: > > On 2016-06-28 Tue 15:27 PM |, Craig Skinner wrote: > > > This diff presents 'Halt' and 'Reboot' buttons on the xdm screen. > > > > > > > Now it closes the message box

Re: xdm halt & reboot buttons

2016-06-30 Thread Craig Skinner
Hiya, On 2016-06-29 Wed 14:46 PM |, Craig Skinner wrote: > On 2016-06-28 Tue 15:27 PM |, Craig Skinner wrote: > > This diff presents 'Halt' and 'Reboot' buttons on the xdm screen. > > > > Now it closes the message box + adds 'Hibernate' & 'Suspend' buttons. > > > > > Adapted from http://cafim.

Re: xdm halt & reboot buttons

2016-06-29 Thread Craig Skinner
Hello, On 2016-06-28 Tue 15:27 PM |, Craig Skinner wrote: > This diff presents 'Halt' and 'Reboot' buttons on the xdm screen. > Now it closes the message box + adds 'Hibernate' & 'Suspend' buttons. > > Adapted from http://cafim.sssup.it/~giulio/other/Customization_XDM.html > --- /etc/X11/xd

xdm halt & reboot buttons

2016-06-28 Thread Craig Skinner
Hello, This diff presents 'Halt' and 'Reboot' buttons on the xdm screen. Other buttons could be added, such as 'Hibernate' & 'Suspend'. The message box remains after login but can be manually closed. Adapted from http://cafim.sssup.it/~giulio/other/Customization_XDM.html#starting-the-neces