Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Warning while logging in as root.

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
User avatar
Mad_7
Posts: 111
Joined: 2010-01-09 21:05
Location: Patra, Greece, Europe.

Warning while logging in as root.

#1 Post by Mad_7 »

Hi! :D

When I'm logging-in as root (from console, giving "su -"), beginning today, I started getting an annoying warning from xrdb.
Here's the console's output:

Code: Select all

giorgos@PC:~$ su -
Password:
No protocol specified
xrdb: Resource temporarily unavailable
xrdb: Can't open display ':0'
No protocol specified
xrdb: Resource temporarily unavailable
xrdb: Can't open display ':0'
No protocol specified
xrdb: Resource temporarily unavailable
xrdb: Can't open display ':0'
root@PC:~#
.

Other than that, it doesn't seems to have any other negative effects.

If someone knows anything related to it, please enlighten us! :D
TIA! :wink:
I'm on Jessie x64 KDE.
For the glorious men, every land is a grave.
Pericles' Funeral Oration. Thucydides.

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Warning while logging in as root.

#2 Post by arochester »

Why? su -

(su hyphen)

What happens when you just do?: su

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Warning while logging in as root.

#3 Post by Segfault »

It shouldn't matter, 'su -' is actually better, it also switches the environment so there is no danger of overwriting your user config files and changing their ownership to root.
Why is it happening in console is weird indeed, if it happened in X terminal it would make at least some sense.

User avatar
ralph.ronnquist
Posts: 342
Joined: 2015-12-19 01:07
Location: Melbourne, Australia
Been thanked: 6 times

Re: Warning while logging in as root.

#4 Post by ralph.ronnquist »

The reason for that kind of output would most likely be, that the set up files for root running the shell (bash?) includes three invocations of xrdb, which all fail because root is not allowed access to the X display :0 (where presumably you have a user logged in).

User avatar
Mad_7
Posts: 111
Joined: 2010-01-09 21:05
Location: Patra, Greece, Europe.

Re: Warning while logging in as root.

#5 Post by Mad_7 »

ralph.ronnquist wrote:The reason for that kind of output would most likely be, that the set up files for root running the shell (bash?)
Indeed, I'm running bash (the default option).
ralph.ronnquist wrote:includes three invocations of xrdb, which all fail because root is not allowed access to the X display :0 (where presumably you have a user logged in).
Well...this is a bit cryptic to me, but this is a PC and I'm the only user.
Also I don't have any other running instances, of the root shell.
For the glorious men, every land is a grave.
Pericles' Funeral Oration. Thucydides.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Warning while logging in as root.

#6 Post by bw123 »

Just tell us which file you edited, /root/.profile or /etc/login.defs? or something else. pam related?
resigned by AI ChatGPT

User avatar
ralph.ronnquist
Posts: 342
Joined: 2015-12-19 01:07
Location: Melbourne, Australia
Been thanked: 6 times

Re: Warning while logging in as root.

#7 Post by ralph.ronnquist »

Well...this is a bit cryptic to me, but this is a PC and I'm the only user.
Also I don't have any other running instances, of the root shell.
Sorry, with "user" I meant "login identity". I am guessing you first logged in with some certain log in identity, different from "root". Then the X server gets tied to that "user", different from "root", and no other "user" including "root" is then authorized to access the X server.

I must admit I'm not fully en par with the X authorization scheme in KDE.
And of course, I, like bw123 (and others), can't guess why xrdb would be invoked in your bash set up files.

User avatar
Mad_7
Posts: 111
Joined: 2010-01-09 21:05
Location: Patra, Greece, Europe.

Re: Warning while logging in as root.

#8 Post by Mad_7 »

bw123 wrote:Just tell us which file you edited, /root/.profile or /etc/login.defs? or something else. pam related?
OK, I'll tell you! :lol:
I edit .profile (my own profile, not root's one), some weeks ago, for exporting a value every startup. :D
However, this problem occurred today.
ralph.ronnquist wrote: I must admit I'm not fully en par with the X authorization scheme in KDE.
And of course, I, like bw123 (and others), can't guess why xrdb would be invoked in your bash set up files.
Oh I see!
I have to confess, that I'm not familiar with PAM and authentication schemes. I didn't even know, that KDE's one differs from the rest. :oops:
If so, that explains why it's a bit problematic.
Since KDE 5 came to life, KDE 4 is becoming more and more buggy and the developers declared that can't maintain v.4 while active developing v.5, due to lack of staff (It makes sense).
For the glorious men, every land is a grave.
Pericles' Funeral Oration. Thucydides.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Warning while logging in as root.

#9 Post by bw123 »

Since KDE 5 came to life, KDE 4 is becoming more and more buggy
I have not found this to be the case here, maybe you can give some examples. KDE in jessie hasn't been updated very much, I recall kde4libs update a few months ago, but to say that "more and more" bugs are being introduced would mean you're getting updates from somewhere besides the debian repo?

Anyway, I don't see what this has to to with your configuration issue?

If you are convinced this behavior with xrdb is a bug in kde4, then you could file a bug report. Even though it might not get fixed, it might help others try to find a workaround by looking at your system info gathered by program reportbug.
resigned by AI ChatGPT

Post Reply