1827891 Members
1800 Online
109969 Solutions
New Discussion

X Windows problem

 
SOLVED
Go to solution
Steven E. Protter
Exalted Contributor

X Windows problem

root can run startx no problem.

I try with a user and:

PAM authentication failed, cannot start X server
Perhaps you do not have console ownership?

... snip ...

giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3)
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
4 REPLIES 4
Ivan Ferreira
Honored Contributor
Solution

Re: X Windows problem

>> Perhaps you do not have console ownership?

When you logon to the system, pam ensures that the user has the apropiate permissions to device special files. But, to do that, the user has to logon directly to the console.

If you logged on as root, and then su to the user, and then run startx, then the permissions for the device special files may not be correct.

Are you "su-ing" to a user before startx?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: X Windows problem

I am su-ing yes.

I've tried direct login and gotten the same results though.

Will try again.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: X Windows problem

Problem:

User had no .gconf directory.

Solution:

usrdel -r username
rm -rf /home/username/

useradd username
passwd username
# set password

Do direct X Windows login

Still a mess.

.gconf was missing, probably accidently deleted from /etc/skel (NOT MY BOX!!!)

created folder
copied the contents in from root and chowned them to user.

OUCH!

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: X Windows problem

I feel smart today. NOT!

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com