Problem description:
Today, all users except root cannot start startx, and the following error occurs: Java code Fatal server error: PAM authentication failed, cannot start X server. Perhaps you do not have console ownership? When reporting a problem related to a server crash, please send the full server output, not just the last messages. Please report problems to xfree86@xfree86.org.
Giving up. www.2cto.com xinit: No such file or directory (errno 2): unable to connect to X server xinit: No such process (errno 3): Server error. couldnt get a file descriptor referring to the console solution:
Check the username in/var/run/console. lock and/var/run/console/<user>. During authentication, pam_console compares whether the user name is consistent with console. lock content. If not, authentication fails. /Var/run/console/<user> is used to record the number of user logins. After a user logs out, console. lock can be deleted. Solution:
I am a common oracle user. I run the touch oracle command under/var/run/console/to create an oracle file. Then I can run startx again to access the graphical interface.