I am running RedHat 9.0 on an Intel Pentium 4. When I log in as Odin (a user account) I have no trouble starting the X Windows environment w/ 'startx'. However, when I log in as Root the screen blanks, the mouse X appears and that is all that happens. ie. X Windows does not appear. (the mouse is active). When instead I switch from Root to Odin as 'su - odin', then I get the Fatal server error: 'PAM authentication failed, cannot start X server.' Moreover, it could not find 'xinit' which may be the problem. When I am Odin and 'which xinit' I get /usr/bin/X11/xinit, when I am Root and 'which xinit' I get /usr/X11R6/bin/xinit.
I have tried in Odin export DISPLAY=:0.0, but when I try 'xhost +' I get
'xhost: unable to open display ":0.0"
I would like to know why I cannot startx from Odin when I su from Root. Pls advise. Thx.