Re: sudo in X-environment -- polkit solution

2014-05-05 Thread Tom H
On Sun, May 4, 2014 at 11:08 AM, Osamu Aoki wrote: > On Sat, May 03, 2014 at 12:43:17PM +0200, Ralf Mardorf wrote: >> On Sat, 2014-05-03 at 06:29 -0400, Tom H wrote: > I am wondering why you even need to use wrapper explicitly? That's why I've said that I consider using a wrapper for gksu/gksud

Re: sudo in X-environment -- polkit solution

2014-05-04 Thread Osamu Aoki
Hi, I am wondering why you even need to use wrapper explicitly? On Sat, May 03, 2014 at 12:43:17PM +0200, Ralf Mardorf wrote: > On Sat, 2014-05-03 at 06:29 -0400, Tom H wrote: > > Thanks. As I said earlier, I consider this a bug. What's the point of > > using gksu/gksudo if you have do use a wrap

Re: sudo in X-environment

2014-05-03 Thread Steve Litt
On Sat, 3 May 2014 02:15:14 -0400 Tom H wrote: > A change in su has broken sux: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659832 Doesn't surprise me one bit. I've been telling you all for years that sux sux! /* Litt ducks and runs */ -- To UNSUBSCRIBE, email to debian-user-requ.

Re: sudo in X-environment

2014-05-03 Thread Ralf Mardorf
On Sat, 2014-05-03 at 06:29 -0400, Tom H wrote: > Thanks. As I said earlier, I consider this a bug. What's the point of > using gksu/gksudo if you have do use a wrapper that you could use > around su/sudo? You still will get a GUI to enter the password. When running su/sudo by a launcher, you at l

Re: sudo in X-environment

2014-05-03 Thread Tom H
On Sat, May 3, 2014 at 3:21 AM, Ralf Mardorf wrote: > > Btw. xhost is needed when using gksudo: > > $ chuser firefox > No protocol specified > No protocol specified > Error: cannot open display: :0 > size == 0' failed > $ cat /usr/local/bin/chuser > #!/bin/sh > > # /usr/local/bin/chuser -> /.chuse

Re: sudo in X-environment

2014-05-03 Thread Johann Spies
> > xhost + > gksudo -u chuser "$*" > xhost - > exit > Thanks for all the answers. I have learnt a lot. I have never used gksudo before but for me it works without having to use xhost. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you.

Re: sudo in X-environment

2014-05-03 Thread Ralf Mardorf
On Sat, 2014-05-03 at 02:15 -0400, Tom H wrote: > On Sat, May 3, 2014 at 1:35 AM, Ralf Mardorf > wrote: > > On Sat, 2014-05-03 at 07:24 +0200, Slavko wrote: > >> > >> sux was removed from testing and unstable, then it is not a solution to > >> future. > > > > It's just a short script everybody co

Re: sudo in X-environment

2014-05-02 Thread Tom H
On Sat, May 3, 2014 at 1:35 AM, Ralf Mardorf wrote: > On Sat, 2014-05-03 at 07:24 +0200, Slavko wrote: >> >> sux was removed from testing and unstable, then it is not a solution to >> future. > > It's just a short script everybody could copy & paste from any other > distro or from upstream, http:/

Re: sudo in X-environment

2014-05-02 Thread Ralf Mardorf
On Sat, 2014-05-03 at 07:24 +0200, Slavko wrote: > Ahoj, > > Dňa Sat, 03 May 2014 14:54:11 +1000 Scott Ferguson > napísal: > > > Usually you would use the graphical su from your de, unless you have > > no de... > > > > Use sux > > apt-get install sux > > x wrapper for su. > > sux was removed f

Re: sudo in X-environment

2014-05-02 Thread Slavko
Hi, Dňa Sat, 3 May 2014 00:33:28 +0100 Tom Furie napísal: > Context is all important. I am sorry, i deleted previous posts, then i lost proper context. It was attempt to find the best one... regards -- Slavko http://slavino.sk signature.asc Description: PGP signature

Re: sudo in X-environment

2014-05-02 Thread Slavko
Ahoj, Dňa Sat, 03 May 2014 14:54:11 +1000 Scott Ferguson napísal: > Usually you would use the graphical su from your de, unless you have > no de... > > Use sux > apt-get install sux > x wrapper for su. sux was removed from testing and unstable, then it is not a solution to future. regards --

Re: sudo in X-environment

2014-05-02 Thread Scott Ferguson
On 01/05/14 18:51, Johann Spies wrote: > For years I have used sudo both in server administration and on the > desktop. > > Lately I get the following error message and I do not really know what > to do about it other than logging into the xserver as root - which I do > not want to do: > > $ sudo

Re: sudo in X-environment

2014-05-02 Thread Tom H
On Fri, May 2, 2014 at 10:30 AM, Ralf Mardorf wrote: > On Fri, 2014-05-02 at 14:04 +0200, Slavko wrote: >> Dňa Thu, 1 May 2014 20:33:17 + Артур Истомин >> napísal: >>> On Thu, May 01, 2014 at 07:29:08PM +0100, Tom Furie wrote: Here, have a wrapper script #!/bin/sh xho

Re: sudo in X-environment

2014-05-02 Thread Tom Furie
On Fri, May 02, 2014 at 02:04:46PM +0200, Slavko wrote: > > On Thu, May 01, 2014 at 07:29:08PM +0100, Tom Furie wrote: > > > Here, have a wrapper script > > > > > > --8x > > > > > > #!/bin/sh > > > > > > xhost + si:localuser:root > > > sudo $@ > > > xhost - si:localuser:root

Re: sudo in X-environment

2014-05-02 Thread Ralf Mardorf
On Fri, 2014-05-02 at 14:04 +0200, Slavko wrote: > Ahoj, > > Dňa Thu, 1 May 2014 20:33:17 + Артур Истомин > napísal: > > > On Thu, May 01, 2014 at 07:29:08PM +0100, Tom Furie wrote: > > > Here, have a wrapper script > > > > > > --8x > > > > > > #!/bin/sh > > > > > > xh

Re: sudo in X-environment

2014-05-02 Thread Slavko
Ahoj, Dňa Thu, 1 May 2014 20:33:17 + Артур Истомин napísal: > On Thu, May 01, 2014 at 07:29:08PM +0100, Tom Furie wrote: > > Here, have a wrapper script > > > > --8x > > > > #!/bin/sh > > > > xhost + si:localuser:root > > sudo $@ > > xhost - si:localuser:root > > > >

Re: sudo in X-environment

2014-05-01 Thread Артур Истомин
On Thu, May 01, 2014 at 07:29:08PM +0100, Tom Furie wrote: > On Thu, May 01, 2014 at 05:19:59PM +, Артур Истомин wrote: > > On Thu, May 01, 2014 at 05:46:36PM +0100, Tom Furie wrote: > > > > 'xhost +' allows anyone anywhere access to your X server. If you must use > > > xhost in this situation

Re: sudo in X-environment

2014-05-01 Thread Ralf Mardorf
On Thu, 2014-05-01 at 19:29 +0100, Tom Furie wrote: > --8x > > #!/bin/sh > > xhost + si:localuser:root > sudo $@ > xhost - si:localuser:root > > --8x > > Save it as xdo and it's even less typing than 'xhost + ... xhost -' :) That reminds me, that I still

Re: sudo in X-environment

2014-05-01 Thread Tom Furie
On Thu, May 01, 2014 at 05:19:59PM +, Артур Истомин wrote: > On Thu, May 01, 2014 at 05:46:36PM +0100, Tom Furie wrote: > > 'xhost +' allows anyone anywhere access to your X server. If you must use > > xhost in this situation it would be much safer to use 'xhost + > > si:localuser:root', this

Re: sudo in X-environment

2014-05-01 Thread Артур Истомин
On Thu, May 01, 2014 at 05:46:36PM +0100, Tom Furie wrote: > On Thu, May 01, 2014 at 04:30:11PM +, Артур Истомин wrote: > > On Thu, May 01, 2014 at 10:51:21AM +0200, Johann Spies wrote: > > > For years I have used sudo both in server administration and on the > > > desktop. > > > > > > Lately

Re: sudo in X-environment

2014-05-01 Thread Tom H
On Thu, May 1, 2014 at 12:30 PM, Артур Истомин wrote: > On Thu, May 01, 2014 at 10:51:21AM +0200, Johann Spies wrote: >> >> For years I have used sudo both in server administration and on the desktop. >> >> Lately I get the following error message and I do not really know what to do >> about it ot

Re: sudo in X-environment

2014-05-01 Thread Tom Furie
On Thu, May 01, 2014 at 04:30:11PM +, Артур Истомин wrote: > On Thu, May 01, 2014 at 10:51:21AM +0200, Johann Spies wrote: > > For years I have used sudo both in server administration and on the desktop. > > > > Lately I get the following error message and I do not really know what to do > > a

Re: sudo in X-environment

2014-05-01 Thread Артур Истомин
On Thu, May 01, 2014 at 10:51:21AM +0200, Johann Spies wrote: > For years I have used sudo both in server administration and on the desktop. > > Lately I get the following error message and I do not really know what to do > about it other than logging into the xserver as root - which I do not want

Re: sudo in X-environment

2014-05-01 Thread Tom H
On Thu, May 1, 2014 at 4:51 AM, Johann Spies wrote: > > For years I have used sudo both in server administration and on the desktop. > > Lately I get the following error message and I do not really know what to do > about it other than logging into the xserver as root - which I do not want > to do

sudo in X-environment

2014-05-01 Thread Johann Spies
For years I have used sudo both in server administration and on the desktop. Lately I get the following error message and I do not really know what to do about it other than logging into the xserver as root - which I do not want to do: $ sudo system-config-printer No protocol specified error