Re: sudo in X-environment -- polkit solution

2014-05-05 Thread Tom H
On Sun, May 4, 2014 at 11:08 AM, Osamu Aoki os...@debian.org 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

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 wrapper

Re: sudo in X-environment

2014-05-03 Thread Tom H
On Sat, May 3, 2014 at 1:35 AM, Ralf Mardorf ralf.mard...@alice-dsl.net 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

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 ralf.mard...@alice-dsl.net 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

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 Tom H
On Sat, May 3, 2014 at 3:21 AM, Ralf Mardorf ralf.mard...@alice-dsl.net 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 #

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

Re: sudo in X-environment

2014-05-03 Thread Steve Litt
On Sat, 3 May 2014 02:15:14 -0400 Tom H tomh0...@gmail.com 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

Re: sudo in X-environment

2014-05-02 Thread Slavko
Ahoj, Dňa Thu, 1 May 2014 20:33:17 + Артур Истомин art.is...@yandex.ru 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-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 + Артур Истомин art.is...@yandex.ru napísal: On Thu, May 01, 2014 at 07:29:08PM +0100, Tom Furie wrote: Here, have a wrapper script --8x #!/bin/sh xhost +

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 Tom H
On Fri, May 2, 2014 at 10:30 AM, Ralf Mardorf ralf.mard...@alice-dsl.net wrote: On Fri, 2014-05-02 at 14:04 +0200, Slavko wrote: Dňa Thu, 1 May 2014 20:33:17 + Артур Истомин art.is...@yandex.ru napísal: On Thu, May 01, 2014 at 07:29:08PM +0100, Tom Furie wrote: Here, have a wrapper

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 Slavko
Ahoj, Dňa Sat, 03 May 2014 14:54:11 +1000 Scott Ferguson scott.ferguson.debian.u...@gmail.com 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

Re: sudo in X-environment

2014-05-02 Thread Slavko
Hi, Dňa Sat, 3 May 2014 00:33:28 +0100 Tom Furie t...@furie.org.uk 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 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 scott.ferguson.debian.u...@gmail.com 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.

Re: sudo in X-environment

2014-05-01 Thread Tom H
On Thu, May 1, 2014 at 4:51 AM, Johann Spies johann.sp...@gmail.com 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

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 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 about it

Re: sudo in X-environment

2014-05-01 Thread Tom H
On Thu, May 1, 2014 at 12:30 PM, Артур Истомин art.is...@yandex.ru 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

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 I get the

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 would

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 didn't

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 it would

Re: sudo and X

2006-01-26 Thread Simo Kauppi
On Wed, Jan 25, 2006 at 04:17:20PM -0500, Michael Papazoglou wrote: There has been some discussion about sudo and X, but I have yet to see a solution. The problem is, with the latest update to sudo, when I try to use sudo to run a program that opens a window (example: sudo xterm) I get

Re: sudo and X

2006-01-26 Thread Hugo Vanwoerkom
Simo Kauppi wrote: On Wed, Jan 25, 2006 at 04:17:20PM -0500, Michael Papazoglou wrote: There has been some discussion about sudo and X, but I have yet to see a solution. The problem is, with the latest update to sudo, when I try to use sudo to run a program that opens a window (example: sudo

Re: sudo and X

2006-01-26 Thread Rob Benton
Simo Kauppi wrote: On Wed, Jan 25, 2006 at 04:17:20PM -0500, Michael Papazoglou wrote: There has been some discussion about sudo and X, but I have yet to see a solution. The problem is, with the latest update to sudo, when I try to use sudo to run a program that opens a window (example: sudo

Re: sudo and X

2006-01-26 Thread Simo Kauppi
On Thu, Jan 26, 2006 at 10:27:10AM -0600, Rob Benton wrote: Simo Kauppi wrote: On Wed, Jan 25, 2006 at 04:17:20PM -0500, Michael Papazoglou wrote: There has been some discussion about sudo and X, but I have yet to see a solution. According to the DSA, additional variables are only passed

Re: sudo and X

2006-01-26 Thread kamaraju kusumanchi
Rob Benton wrote: What is DSA? Most of these kind of things can be checked by yourself using the dict command. $dict DSA 9 definitions found From Virtual Entity of Relevant Acronyms (Version 1.9, June 2002) [vera]: DSA Data Service Adapter From Virtual Entity of Relevant

Re: Re: sudo and X

2006-01-26 Thread Lei Kong
I haven't seen any definitive answers to this one yet and I'm not sure if the behavior is different between sarge and etch (I have etch). After the update of sudo I didn't have any problems, but as soon as I put the Defaults env_reset into the /etc/sudoers as suggested by the DSA 946-1, the