root cannot run "startx" or "startkde"

#1
I'm confused why I can use startx and startkde from users other than root. When I try running these commands as root it returns the DRIScreenInit Failed. Disabling DRI.

Also, I think this may be linked to a permissions problem because when I am inside KDE with another use, I cannot su or change to administrator mode. Can anyone help me with this? Thanks in advance!
 

Geffy

OSNN Veteran Addict
#2
its probably a security feature to prevent you from running your GUI system as the root user which is an inherently bad idea

su'ing to root, is the user you are running as a member of the wheel/root group?
 

Howling Wolf

We did not deserve this !
#3
Strange, I have Debian (Sid) installed on my 2nd hdd and as I've installed KDE from command line as root, I'm able to run "startx" from there. I've done it several times only for test purpose, of course I usually log in as Howling Wolf ;)
 

ThePatriot

-=[BOHICA!]=-
Political User
#4
Geffy's right, it is most likely a security issue...but I regularly run "startx" as root in Unixware and RedHat 9 with no prob. I take a look at my work machines tomorrow and see if I can find anything.
 

X-Istence

*
Political User
#5
It is probably a new security feature in X.org and would probably not exist in XFree. Which is why older systems with XFree would not have the problem. I tend to never run X.org as root in the first place, but i am thinking it is a security related problem as well.
 
#6
Ok, I found the problem why I couldn't use KDM. I was able to use XDM which was strange, so I fooled around with the KDM configuration and found an option in kdmrc where it says on a line something similar to:

AllowRootLogin: False

So, I changed it to true and am able to use KDM to login.
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,969
Messages
673,295
Members
89,015
Latest member
arrangel