Discussion:
normal user cannot start x
Tinow ME
2006-11-01 08:33:42 UTC
Permalink
hi all
I just finished installation of xorg. The root startx ok, but
when I log in
as a user other than root and startx it fails and appears:

===============================================
Fatal server error:
PAM authentication failed, cannot start X server.
Perhaps you do not have console ownership?

Please consult the The X.Org Foundation support
at http://wiki.X.org
for help.

giving up.
/usr/X11R6/bin/xinit: Connection refused (errono 111): unable to
connect to X server
/usr/X11R6/bin/xinit: No such process (errno 3): Server error.
===============================================

any ideas
Chris Staub
2006-11-01 08:43:34 UTC
Permalink
Post by Tinow ME
hi all
I just finished installation of xorg. The root startx ok, but
when I log in
===============================================
PAM authentication failed, cannot start X server.
Perhaps you do not have console ownership?
Please consult the The X.Org Foundation support
at http://wiki.X.org
for help.
giving up.
/usr/X11R6/bin/xinit: Connection refused (errono 111): unable to
connect to X server
/usr/X11R6/bin/xinit: No such process (errno 3): Server error.
===============================================
any ideas
Most likely /usr/X11R6/bin/Xorg is not setuid root. What is the output
of "ls -l /usr/X11R6/bin/Xorg"?
Tinow ME
2006-11-01 08:46:53 UTC
Permalink
it's:

-rws--x--x 1 root root ........................

seems ok
Post by Chris Staub
Post by Tinow ME
hi all
I just finished installation of xorg. The root startx ok, but
when I log in
===============================================
PAM authentication failed, cannot start X server.
Perhaps you do not have console ownership?
Please consult the The X.Org Foundation support
at http://wiki.X.org
for help.
giving up.
/usr/X11R6/bin/xinit: Connection refused (errono 111): unable to
connect to X server
/usr/X11R6/bin/xinit: No such process (errno 3): Server error.
===============================================
any ideas
Most likely /usr/X11R6/bin/Xorg is not setuid root. What is the output
of "ls -l /usr/X11R6/bin/Xorg"?
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Jerzy Goca
2006-11-01 19:22:47 UTC
Permalink
Post by Tinow ME
-rws--x--x 1 root root ........................
seems ok
Post by Tinow ME
hi all
I just finished installation of xorg. The root startx ok, but
when I log in
===============================================
PAM authentication failed, cannot start X server.
Perhaps you do not have console ownership?
Please consult the The X.Org Foundation support
at http://wiki.X.org
for help.
giving up.
/usr/X11R6/bin/xinit: Connection refused (errono 111): unable to
connect to X server
/usr/X11R6/bin/xinit: No such process (errno 3): Server error.
You have to crate a file /etc/pam.d/xserver with proper rules alowing
start server.
In mine I have the following file:

auth required pam_localuser.so
account required pam_unix.so

That's allow any local user who is registered in /etc/passwd to start
xserver.

Tinow ME
2006-11-01 13:25:07 UTC
Permalink
Post by Chris Staub
Post by Tinow ME
hi all
I just finished installation of xorg. The root startx ok, but
when I log in
===============================================
PAM authentication failed, cannot start X server.
Perhaps you do not have console ownership?
Please consult the The X.Org Foundation support
at http://wiki.X.org
for help.
giving up.
/usr/X11R6/bin/xinit: Connection refused (errono 111): unable to
connect to X server
/usr/X11R6/bin/xinit: No such process (errno 3): Server error.
===============================================
any ideas
Most likely /usr/X11R6/bin/Xorg is not setuid root. What is the output
of "ls -l /usr/X11R6/bin/Xorg"?
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Following some hints I solved the problem yet, by change
/etc/pam.d/xserver to:
auth required /lib/security/pam_permit.so
account required /lib/security/pam_permit.so
Loading...