LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2006, 09:47 AM   #1
baabakb
LQ Newbie
 
Registered: Aug 2006
Location: DC area
Distribution: Suse 10.2 and loving it
Posts: 20

Rep: Reputation: 0
Non Root user cannot log into the X server


As I am a new user, I have been working around in FC5 to learn but I broke something which I cannot figure out how to fix it. I had set up my resolution to 1600x1200 and next day when I booted up it gave me the following error when I try to run "startx".

********************************************************
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
***********************************************************


I did the following (based on POsT)


I edited the inittab file to runlevel 3. I logged into the system and run the "system-config-dislay --reconfig" under root. I changed the runlevel back to 5.

Now the issue is it runs with the 1600x1200 resolution and start up the x server, but only root can log into the x server. All the other users cannot log in. the screen goes black for couple of times and then it brings back the log in screen.

I am getting the followings when I try to startx from other virtual console when I log in as the user:


*****************************************************************
Fatal server error
Server is already active for display 0
if this server is no longer running, remove /tmp/X0-lock and start again

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


Do I have to reinstall the fedora again or there is a hope?

Thanks,





What's going on now?

HELP
 
Old 09-01-2006, 10:16 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
could you paste the output of
cat /etc/securetty
cat /etc/pam.d/login
chkconfig --list xfs
 
Old 09-01-2006, 10:42 AM   #3
baabakb
LQ Newbie
 
Registered: Aug 2006
Location: DC area
Distribution: Suse 10.2 and loving it
Posts: 20

Original Poster
Rep: Reputation: 0
I run the command on the runlevel 3

cat /etc/securetty (under user log in)

Cat: /etc/security: Is a directory

cat /etc/pam.d/login (under user log in)

#%PAM-1.0
auth required pam_security.so
auth include system-auth
account required pam_nologin.so
account include system-auth
password include system-auth
#pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session include system-auth
session required pam_loninuid.so
session optional pam_console.so
#pam_selinux.so open should be the last session rule
session required pam_selinux.so open

chkconfig --list xfs (under root log in)

xfs 0: off 1: off 2: on 3: on 4: on 5: on 6: off


Also, I should include the following

When I run the "system-config-display --reconfig" I get the following error after it launches the GUI set up screen:

**************************************************
Window Manager Warinig: Lost Connection to display 1:17:0';
Most likely the X server was shut don or you killed/destroyed the window manager
***************************************************

And when I run startx command at runlevel 3 under user account I receive the following error:

*****************************************************
Fatal server error
caught signal 11 : Server aborting
the application 'gnome-session' lost its connection to display :0.0;
most likely the X server was shut down or you killed/destroyed the application
Xinit: connection to X server lost
*******************************************************

Thanks for furthur helps,

Last edited by baabakb; 09-01-2006 at 10:43 AM.
 
Old 09-01-2006, 10:49 AM   #4
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
your securetty file seems to be empty
just add these lines to it
Quote:
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
and now try logging in as a normal user.
 
Old 09-01-2006, 10:52 AM   #5
baabakb
LQ Newbie
 
Registered: Aug 2006
Location: DC area
Distribution: Suse 10.2 and loving it
Posts: 20

Original Poster
Rep: Reputation: 0
I am very new in all these. I have to add the lines to what file. I will need the file name please.


Thanks,
 
Old 09-01-2006, 10:58 AM   #6
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
vi /etc/securetty
 
Old 09-01-2006, 11:32 AM   #7
baabakb
LQ Newbie
 
Registered: Aug 2006
Location: DC area
Distribution: Suse 10.2 and loving it
Posts: 20

Original Poster
Rep: Reputation: 0
The securetty has already got the following lines:

console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
User log out as Root 5577 Linux - Security 5 06-01-2006 08:41 AM
Cant only log in as root after user log-in. ADJenkins Linux - General 2 11-17-2004 04:18 PM
Log Out root Then Log In As Other User xtremcoder Linux - General 4 10-04-2004 11:01 PM
How to log in as root user Ree Linux - Newbie 4 09-30-2004 04:35 PM
Can only log in as root user?!?! eviltama Debian 10 05-29-2004 05:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration