Fatal Server Error Pam Authentication Failed
Contents |
Cannot run startx as non-root user General support questions Post Reply Print view Search Advanced search 5 posts • Page 1 of 1 Annorax Posts: 5 Joined: 2013/10/05 18:12:04 [SOLVED] CentOS 6.4: Cannot xauth: file .serverauth does not exist run startx as non-root user Quote Postby Annorax » 2013/10/06 01:52:16 Hello all,I have serverauth does not exist centos CentOS 6.4 and Fluxbox up and running. I am able to run 'startx' as a root user to launch Fluxbox with server is already active for display 0 no problems but when I 'su -' into another user, I get this error:xauth: creating new authority file /home/msmigiel/.serverauth.1689Fatal server error:PAM authentication failed, cannot start X server. Perhaps you do not have console ownership?(EE)Please consult
Startx Serverauth Does Not Exist
the CentOS support at http://wiki.centos.org/Documentation for help.(EE)^Cgiving up.xinit: Connection refused (errno 111): unable to connect to X serverxinit: No such process (errno 3): unexpected signal 2.When I log in directly as the other user, it works. My ~/.xinitrc contains the single line "exec startfluxbox" and my /etc/inittab is set to level 3 with "id:3:initdefault:". I Google'd around a bit and saw some other people with the issue but the few solutions I found were for folder versions and do not work for me. Does anyone know what might be wrong? Top Annorax Posts: 5 Joined: 2013/10/05 18:12:04 Re: [SOLVED] CentOS 6.4: Cannot run startx as non-root user Quote Postby Annorax » 2013/10/06 11:19:08 I've managed to fix this by editing /etc/pam.d/xserver to look like the following:#%PAM-1.0auth sufficient pam_rootok.so#auth required pam_console.soauth sufficient pam_permit.soaccount sufficient pam_permit.sosession optional pam_keyinit.so force revokeI don't see a way to edit my own post or change the title so any mods, please feel free to mark this thread Solved. Top TrevorH Forum Moderator Posts: 16843 Joined: 2009/09/24 10:40:56 Location: Brighton, UK Re: [SOLVED] CentOS 6.4: Cannot run startx as non-root user Quote Postby TrevorH » 2013/10/06 11:24:55 From the throwaway comment you made about using su, I suspect that's actually your problem. I would expect it to work if you logon as the correct user to start with. The logon process assigns console ownership to the user who logs on so if you logon as root then su - to another user, the console is still owned by root. Top scottro Forum Moderator Posts: 2215 Joined: 2007/09/03 21:18:09 Location: NYC Contact: Contact scottro Website [SOLVED] CentOS 6.4: Cannot run startx as non-root u
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the http://www.centos.org/forums/viewtopic.php?t=4743 top Getting error when running startx in Linux up vote 1 down vote favorite When I am trying to run the Xserver using the command startx I am getting the below mentioned error xauth: creating new authority file /oracle/oracle10g/.serverauth.22555 Fatal server error: PAM authentication failed, cannot start X server. Perhaps you do not have console ownership? Xlib: connection to ":0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key giving up. xinit: unable http://superuser.com/questions/303861/getting-error-when-running-startx-in-linux to connect to X server xinit: No such process (errno 3): unexpected signal 2. Couldnt get a file descriptor referring to the console How can I correct this? linux x-server share|improve this question edited Jun 29 '11 at 13:05 slhck 125k38315362 asked Jun 29 '11 at 11:22 maverick 10612 migrated from stackoverflow.com Jun 29 '11 at 11:32 This question came from our site for professional and enthusiast programmers. Do you run it locally or remotely? –ZaB Mar 9 '12 at 9:57 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote have you set your DISPLAY environment variable something like DISPLAY=localhost:0.0 ? are you root user ? If you are root user and login as normal user you can not start X share|improve this answer answered Jun 29 '11 at 11:47 Johan 111 do we need to have xmanager on our remote machine –maverick Jun 30 '11 at 10:06 @maverick Yes. Or any sort of emulator. –Alfabravo Aug 13 '12 at 15:08 add a comment| up vote 0 down vote If there is already another X session running, you have to run yours on a different display number. Try this: startx -- :5 (Here "5" could be any unused number.
[ date ] [ thread ] [ subject https://lists.freedesktop.org/archives/xdg/2004-October/003610.html ] [ author ] On Fri, 22 Oct 2004, Jonathan Scott wrote: > Fatal server error: > PAM authentication failed, cannot start X server. http://serverfault.com/questions/311785/how-to-enable-xorg-for-user-on-server > Perhaps you do not have console ownership? > > Please consult the The X.Org Foundation sup > at http://wiki.X.Org > for help. does not > > xinit: No such process (errno 3): Server error. > =============== > > I am starting X with "su -l myuser -c startx". What can I do to get > startx to properly start my X session? Any help in getting me on the > right path does not exist would be very much welcome. The console needs to be owned by myuser before X is started. Do you have a /etc/security/console.perms file? Maybe you have a console.perms(5) man page or pam_console(8) man page. Do you have a xserver file in /etc/pam.d/? Maybe comment out the pam_console reference if it exists. This might be distribution specific. (I am assuming your run Linux.) By the way, this list (xdg) is probably not appropriate for these questions. I don't know what the general questions list for X.org is. (Maybe they need one.) Jeremy C. Reed BSD News, BSD tutorials, BSD links http://www.bsdnewsletter.com/ Previous message: Running startx as user other than root Next message: Running startx as user other than root Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the xdg mailing list
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to enable Xorg for user on server? up vote 3 down vote favorite I have a Shell script on a server. The script is run by a particular user, not root. The script has the following: export DISPLAY=:8 Xorg $DISPLAY But there is an error: Fatal server error: PAM authentication failed, cannot start X server. Perhaps you do not have console ownership? Can anyone guide me on how to fix this? I've been Googling but there are numerous different answers so I need a bit of guidance. Thanks for your time. Edit: I have found this (enter link description here) which suggests changing the /etc/pam.d/xserver file but I don't really know if that's the right thing to do? xorg xserver share|improve this question edited Sep 15 '11 at 14:53 asked Sep 15 '11 at 14:15 C0deAttack 11614 Why do you want to start an X server from an ssh session? If you want to use X11 clients, use ssh -X and make sure you have Apple's X11 or XQuartz installed. –Sven♦ Sep 15 '11 at 14:31 Sorry I don't think I described the actual problem well enough, I've updated my question. –C0deAttack Sep 15 '11 at 14:48 Where do you want things to be displayed? On your screen or somewhere directly on the server? –Sven♦ Sep 15 '11 at 14:50 I don't actually need to see anything. I am using something called WebDriver to open Firefox to do some automated UI testing. –C0deAttack Sep 15 '11 at 14:53 -x- deleted -x- –voretaq7♦ Sep 15 '11 at 14:54 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote WebDriver is really not supposed to be run on a server -- It should be run on a workstation being used to conduct the tests. If you really want to run the WebDriver test suite on the server then as SvenW pointed out, you're D