Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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?

share|improve this question

migrated from 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

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
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

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.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.