eleungks
asked on
startx question
Hi, I am using RedHat Linux 6.2, the following is the problem:
(1) At the server console, I login as root
(2) Then I "su - userSOMEONE" to switch to "userSOMEONE"
(3) Then I "startx" to start the X-window, but I got this error
Authentication failed - cannot start X server.
Perhaps you do not have console
ownership?_X11TransSocketU NIXConnect : Can't connect: errno = 111
giving up.
xinit: Connection refused (errno 111): unable to connect to X
server
xinit: No such process (errno 3): Server error.
However, if I "startx" after step (1), where login as root, the error won't
appear and X-window starts normally.
Does anyone have this experience? Did I missed some settings?
Thanks in advance.
(1) At the server console, I login as root
(2) Then I "su - userSOMEONE" to switch to "userSOMEONE"
(3) Then I "startx" to start the X-window, but I got this error
Authentication failed - cannot start X server.
Perhaps you do not have console
ownership?_X11TransSocketU
giving up.
xinit: Connection refused (errno 111): unable to connect to X
server
xinit: No such process (errno 3): Server error.
However, if I "startx" after step (1), where login as root, the error won't
appear and X-window starts normally.
Does anyone have this experience? Did I missed some settings?
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I agree with jlevie,you should always log with a generic account, and you can always su to root when needed.
xhost is not the issue, the other stuff looks correct to me. If there is a good reason to login as root then change. I cant imagine why. Then change the ownership of the console.
Hooky workaround:
Find the console name. (tty?)
as root type:
chown userSOMEONE /dev/tty?
su userSOMEONE
Hooky workaround:
Find the console name. (tty?)
as root type:
chown userSOMEONE /dev/tty?
su userSOMEONE
eleungks:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
xhost +
before su - userSOMEONE
(keep security in mind: man xhost)