When I launch X programs via sudo, I get the following:
$sudo gui-admin
No protocol specified
gui-admin: cannot connect to X server :0
( Assume gui-admin is an X program )
But (gk|kde)su(do)? works. This is somewhat confusing.
--
Andrey "m05hbear" Vul
09-22-2010, 07:01 PM
Volker Armin Hemmann
X programs as root
On Wednesday 22 September 2010, Andrey Vul wrote:
> When I launch X programs via sudo, I get the following:
>
> $sudo gui-admin
> No protocol specified
> gui-admin: cannot connect to X server :0
>
> ( Assume gui-admin is an X program )
>
> But (gk|kde)su(do)? works. This is somewhat confusing.
>
>
> --
> Andrey "m05hbear" Vul
a) pam
b) sux
09-22-2010, 07:08 PM
Nikos Chantziaras
X programs as root
On 09/22/2010 09:48 PM, Andrey Vul wrote:
When I launch X programs via sudo, I get the following:
$sudo gui-admin
No protocol specified
gui-admin: cannot connect to X server :0
( Assume gui-admin is an X program )
But (gk|kde)su(do)? works. This is somewhat confusing.
sudo doesn't keep the $DISPLAY environment variable by default. There
could be other issues too. Best stick to kdesu and friends; that's what
they are there for.
09-23-2010, 01:18 AM
Dale
X programs as root
Nikos Chantziaras wrote:
On 09/22/2010 09:48 PM, Andrey Vul wrote:
When I launch X programs via sudo, I get the following:
$sudo gui-admin
No protocol specified
gui-admin: cannot connect to X server :0
( Assume gui-admin is an X program )
But (gk|kde)su(do)? works. This is somewhat confusing.
sudo doesn't keep the $DISPLAY environment variable by default. There
could be other issues too. Best stick to kdesu and friends; that's
what they are there for.
Well, I noticed after the recent upgrade to 4.5.1 that mine doesn't work
either. It worked before but not now. I'm not sure what changed
between 4.4 and 4.5.1 but it broke my konqueror as root and other
programs as well. Still have some I haven't tried tho. Konqueror is
the one I need most. Oh, I can get Dolphin to work tho. The conspiracy
theory part in me is starting to think.
Sure would like to get this working again too.
Dale
:-) :-)
09-24-2010, 10:24 PM
Andrey Vul
X programs as root
On Wed, Sep 22, 2010 at 21:18, Dale <rdalek1967@gmail.com> wrote:
> Nikos Chantziaras wrote:
>>
>> On 09/22/2010 09:48 PM, Andrey Vul wrote:
>>>
>>> When I launch X programs via sudo, I get the following:
>>>
>>> $sudo gui-admin
>>> No protocol specified
>>> gui-admin: cannot connect to X server :0
>>>
>>> ( Assume gui-admin is an X program )
>>>
>>> But (gk|kde)su(do)? works. This is somewhat confusing.
>>
>> sudo doesn't keep the $DISPLAY environment variable by default. *There
>> could be other issues too. *Best stick to kdesu and friends; that's what
>> they are there for.
>>
It's the "other issues".
>>
>
> Well, I noticed after the recent upgrade to 4.5.1 that mine doesn't work
> either. *It worked before but not now. *I'm not sure what changed between
> 4.4 and 4.5.1 but it broke my konqueror as root and other programs as well.
> *Still have some I haven't tried tho. *Konqueror is the one I need most.
> *Oh, I can get Dolphin to work tho. *The conspiracy theory part in me is
> starting to think.
Same here, s/konqueror/every gui program run via sudo/
>
> Sure would like to get this working again too.
Ditto. VMware tools, etc, are all gui and sometimes sudo is eaiser to
use than kdesu.
09-24-2010, 11:35 PM
Nikos Chantziaras
X programs as root
On 09/23/2010 04:18 AM, Dale wrote:
Nikos Chantziaras wrote:
On 09/22/2010 09:48 PM, Andrey Vul wrote:
When I launch X programs via sudo, I get the following:
$sudo gui-admin
No protocol specified
gui-admin: cannot connect to X server :0
( Assume gui-admin is an X program )
But (gk|kde)su(do)? works. This is somewhat confusing.
sudo doesn't keep the $DISPLAY environment variable by default. There
could be other issues too. Best stick to kdesu and friends; that's
what they are there for.
Well, I noticed after the recent upgrade to 4.5.1 that mine doesn't work
either. It worked before but not now. I'm not sure what changed between
4.4 and 4.5.1 but it broke my konqueror as root and other programs as
well. Still have some I haven't tried tho. Konqueror is the one I need
most. Oh, I can get Dolphin to work tho. The conspiracy theory part in
me is starting to think.
Sure would like to get this working again too.
Again, use kdesu, not sudo.
But if some reason you want sudo, /etc/sudoers has some info:
## Run X applications through sudo
Read the comments there and uncomment what suits you. Did I mention
that you should use kdesu instead of sudo? :-P
09-25-2010, 03:03 AM
Dale
X programs as root
Nikos Chantziaras wrote:
On 09/23/2010 04:18 AM, Dale wrote:
Nikos Chantziaras wrote:
On 09/22/2010 09:48 PM, Andrey Vul wrote:
When I launch X programs via sudo, I get the following:
$sudo gui-admin
No protocol specified
gui-admin: cannot connect to X server :0
( Assume gui-admin is an X program )
But (gk|kde)su(do)? works. This is somewhat confusing.
sudo doesn't keep the $DISPLAY environment variable by default. There
could be other issues too. Best stick to kdesu and friends; that's
what they are there for.
Well, I noticed after the recent upgrade to 4.5.1 that mine doesn't work
either. It worked before but not now. I'm not sure what changed between
4.4 and 4.5.1 but it broke my konqueror as root and other programs as
well. Still have some I haven't tried tho. Konqueror is the one I need
most. Oh, I can get Dolphin to work tho. The conspiracy theory part in
me is starting to think.
Sure would like to get this working again too.
Again, use kdesu, not sudo.
But if some reason you want sudo, /etc/sudoers has some info:
## Run X applications through sudo
Read the comments there and uncomment what suits you. Did I mention
that you should use kdesu instead of sudo? :-P
Well, I don't really know what it is using. I just set up the menu item
to run the program as root. I don't know if it uses su -, kdesu, sudo
or what. I just know it worked until the upgrade a few days ago.
Since KDE proclaimed this was supposed to be ready for widespread use
and cut off KDE3, I sure do wish they would make up their mind HOW
things are going to work. I would think they need to know that before
claiming something was ready for widespread use. Makes me want to go
back to KDE 3.5. At least I could get everything I need to work and
survive a upgrade too. ;-)
Oh well. This is the new normal for KDE I guess. lol
Dale
:-) :-)
09-25-2010, 07:43 AM
Volker Armin Hemmann
X programs as root
On Saturday 25 September 2010, Dale wrote:
> Nikos Chantziaras wrote:
> > On 09/23/2010 04:18 AM, Dale wrote:
> >> Nikos Chantziaras wrote:
> >>> On 09/22/2010 09:48 PM, Andrey Vul wrote:
> >>>> When I launch X programs via sudo, I get the following:
> >>>>
> >>>> $sudo gui-admin
> >>>> No protocol specified
> >>>> gui-admin: cannot connect to X server :0
> >>>>
> >>>> ( Assume gui-admin is an X program )
> >>>>
> >>>> But (gk|kde)su(do)? works. This is somewhat confusing.
> >>>
> >>> sudo doesn't keep the $DISPLAY environment variable by default. There
> >>> could be other issues too. Best stick to kdesu and friends; that's
> >>> what they are there for.
> >>
> >> Well, I noticed after the recent upgrade to 4.5.1 that mine doesn't work
> >> either. It worked before but not now. I'm not sure what changed between
> >> 4.4 and 4.5.1 but it broke my konqueror as root and other programs as
> >> well. Still have some I haven't tried tho. Konqueror is the one I need
> >> most. Oh, I can get Dolphin to work tho. The conspiracy theory part in
> >> me is starting to think.
> >>
> >> Sure would like to get this working again too.
> >
> > Again, use kdesu, not sudo.
> >
> > But if some reason you want sudo, /etc/sudoers has some info:
> > ## Run X applications through sudo
> >
> > Read the comments there and uncomment what suits you. Did I mention
> > that you should use kdesu instead of sudo? :-P
>
> Well, I don't really know what it is using. I just set up the menu item
> to run the program as root. I don't know if it uses su -, kdesu, sudo
> or what. I just know it worked until the upgrade a few days ago.
>
> Since KDE proclaimed this was supposed to be ready for widespread use
> and cut off KDE3, I sure do wish they would make up their mind HOW
> things are going to work. I would think they need to know that before
> claiming something was ready for widespread use. Makes me want to go
> back to KDE 3.5. At least I could get everything I need to work and
> survive a upgrade too. ;-)
>
> Oh well. This is the new normal for KDE I guess. lol
>
> Dale
>
> :-) :-)
I don't know what you are talking about. Setting up menu items? wtf?
09-25-2010, 08:14 AM
Yohan Pereira
X programs as root
On Saturday 25 September 2010 8:33:09 am Dale wrote:
> Well, I don't really know what it is using. I just set up the menu item
> to run the program as root.
i assume you mean you setup a menuitem to run a paticular application as root
like say to run konsole/konqueror as root.
> I don't know if it uses su -, kdesu, sudo
if its a menu item then it has to use kdesu, because sudo and su both take the
password from teh std input (you wont get a gui prompt to enter the password),
and nothing will happen. all you have to do is fire up the menu editor, go to
your menu entry and make sure the command field looks like this "kdesu
konsole", if it does look like that , try running kdesu from a konsole session
and see what it prints out (it may not be installed for starters).
--
- Yohan Pereira.
09-25-2010, 09:09 AM
Dale
X programs as root
Volker Armin Hemmann wrote:
On Saturday 25 September 2010, Dale wrote:
Nikos Chantziaras wrote:
On 09/23/2010 04:18 AM, Dale wrote:
Nikos Chantziaras wrote:
On 09/22/2010 09:48 PM, Andrey Vul wrote:
When I launch X programs via sudo, I get the following:
$sudo gui-admin
No protocol specified
gui-admin: cannot connect to X server :0
( Assume gui-admin is an X program )
But (gk|kde)su(do)? works. This is somewhat confusing.
sudo doesn't keep the $DISPLAY environment variable by default. There
could be other issues too. Best stick to kdesu and friends; that's
what they are there for.
Well, I noticed after the recent upgrade to 4.5.1 that mine doesn't work
either. It worked before but not now. I'm not sure what changed between
4.4 and 4.5.1 but it broke my konqueror as root and other programs as
well. Still have some I haven't tried tho. Konqueror is the one I need
most. Oh, I can get Dolphin to work tho. The conspiracy theory part in
me is starting to think.
Sure would like to get this working again too.
Again, use kdesu, not sudo.
But if some reason you want sudo, /etc/sudoers has some info:
## Run X applications through sudo
Read the comments there and uncomment what suits you. Did I mention
that you should use kdesu instead of sudo? :-P
Well, I don't really know what it is using. I just set up the menu item
to run the program as root. I don't know if it uses su -, kdesu, sudo
or what. I just know it worked until the upgrade a few days ago.
Since KDE proclaimed this was supposed to be ready for widespread use
and cut off KDE3, I sure do wish they would make up their mind HOW
things are going to work. I would think they need to know that before
claiming something was ready for widespread use. Makes me want to go
back to KDE 3.5. At least I could get everything I need to work and
survive a upgrade too. ;-)
Oh well. This is the new normal for KDE I guess. lol
Dale
:-) :-)
I don't know what you are talking about. Setting up menu items? wtf?
I run my programs through the "K menu" thingy. You know, at the bottom
left of the screen. I may be doing mine different but it seems KDE
doesn't want much of anything being run as root, not the way you are
trying to do it, not the way I have been doing it.
Still puzzled that Dolphin will work but Konqueror does not.