|
Home > Archive > alt.os.linux > December 2002 > Can't launch X app from root console
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Can't launch X app from root console
|
|
|
| I'm using Debian Woody and I'm very pleased with it except for some
problems.
When I'm logged in as a normal user and I open a terminal to launch an app
which requires root rights, the said app refuses to launch.
Here's an example with lprngtool, the printer config tool :
debian:/home/jrn# lprngtool
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Here's the error message it yields. Does anyone have any ideas?
With Mandrake, I can log in as a normal user and launch applications as
root with no problems.
I've tried #xhost + (to give access to X to all users) but it does nothing.
| |
| Chris F.A. Johnson 2002-12-21, 3:25 am |
| On Sat, 21 Dec 2002 at 08:18 GMT, Jay wrote:
> I'm using Debian Woody and I'm very pleased with it except for some
> problems.
> When I'm logged in as a normal user and I open a terminal to launch an app
> which requires root rights, the said app refuses to launch.
> Here's an example with lprngtool, the printer config tool :
>
> debian:/home/jrn# lprngtool
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
> Here's the error message it yields. Does anyone have any ideas?
> With Mandrake, I can log in as a normal user and launch applications as
> root with no problems.
> I've tried #xhost + (to give access to X to all users) but it does nothing.
Do it as the user that owns the X session, not as root.
But it's better to use:
xhost localhost
--
Chris F.A. Johnson bq933@torfree.net
==============================
==============================
=====
c.f.a.johnson@rogers.com http://cfaj.freeshell.org
cfaj@freeshell.org http://members.rogers.com/c.f.a.johnson
| |
| Sybren Stuvel 2002-12-21, 9:24 am |
| Jay enlightened us with:
> When I'm logged in as a normal user and I open a terminal to launch an app
> which requires root rights, the said app refuses to launch.
That's because you never gave anyone permission to run on your X
session. That means that not even root may use your X. This is a very
healthy security setting, and it's good that it's the default. Run
"xhost +localhost" before becoming root to allow everyone logged in on
your computer access to your X.
> With Mandrake, I can log in as a normal user and launch applications as
> root with no problems.
Apparently, Mandrake isn't as secure as Debian Woody by default.
> I've tried #xhost + (to give access to X to all users) but it does nothing.
That doesn't give access to all users, but to all _hosts_. As which user
did you run this command? If you do it as root (which the # suggests):
that won't work. The "xhost" command has to talk to your X server, which
it can't, because it has no access.
Sybren
-- [colo
r=darkred]
>>> RUNNING A MICROSOFT GAME USING WINE <<<[/color]
sybren@sybren:Mechwarrior Mercenaries$ wine MW4Mercs.exe
INSTR_IDT_Emulate Evil attempt to exploit win9x system security flaws detected
INSTR_IDT_Emulate UNIX system security is too strong, can't emulate properly
| |
|
| Sybren Stuvel wrote:
> Jay enlightened us with:
>> When I'm logged in as a normal user and I open a terminal to launch an
>> app which requires root rights, the said app refuses to launch.
>
> That's because you never gave anyone permission to run on your X
> session. That means that not even root may use your X. This is a very
> healthy security setting, and it's good that it's the default. Run
> "xhost +localhost" before becoming root to allow everyone logged in on
> your computer access to your X.
>
>> With Mandrake, I can log in as a normal user and launch applications as
>> root with no problems.
>
> Apparently, Mandrake isn't as secure as Debian Woody by default.
I've not much to add as others have quite nicely answered his questions.
However if Mandrake is allowing you to launch root apps without asking for
a password you have your system seriously misconfigured. When I launch a
root application such as userdrake, it asks me for my root password as it
should. If I don't put it in the application will not run. Although some
do give you the option to run it in unprivliged mode.
The only way I can see him being able to run root apps is he's either on as
root or he su'd to root and doesn't know it.
|
|
|
|
|