LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   While booting getting problem ? (https://www.linuxquestions.org/questions/linux-newbie-8/while-booting-getting-problem-634639/)

Ashok_mittal 04-11-2008 07:40 AM

While booting getting problem ?
 
Hi all,

I have a dual boot system Xp with fedora.I have been using the same fedora successfully for the last 3-4 months, now when i tried to switch from xp to fedora after giving user name and password in the login page the session is not getting started it is showing that your "last session did last for less then 10 seconds, some internal error.please try to login using some fail safe session."
How to sort out this problem?

colucix 04-11-2008 08:02 AM

You can switch to a virtual console by pressing Ctrl-Alt-F1, enter as root and check logs for any related error messages, in particular /var/log/Xorg.0.log and /var/log/messages. Also you have to check the file $HOME/.ICEauthority of the user which cannot do X login. Check the ownership and permissions: it should something like
Code:

-rw------- 1 username group 6564 Apr  4 11:25 .ICEauthority
where username and group should be the user login name and the belonging group. If changed, reset them with chown. Otherwise just remove the user's .ICEauthority file and it will be re-created at login.

Sometimes it happens that some graphical application launched by root gains permission to use the user's display and modify the .ICEauthority file.

Ah... in case you don't know: when you've done, you can switch back to the X console by pressing Ctrl-Alt-F7.

Ashok_mittal 04-13-2008 11:23 PM

Quote:

Originally Posted by colucix (Post 3117934)
You can switch to a virtual console by pressing Ctrl-Alt-F1, enter as root and check logs for any related error messages, in particular /var/log/Xorg.0.log and /var/log/messages. Also you have to check the file $HOME/.ICEauthority of the user which cannot do X login. Check the ownership and permissions: it should something like
Code:

-rw------- 1 username group 6564 Apr  4 11:25 .ICEauthority
where username and group should be the user login name and the belonging group. If changed, reset them with chown. Otherwise just remove the user's .ICEauthority file and it will be re-created at login.

Sometimes it happens that some graphical application launched by root gains permission to use the user's display and modify the .ICEauthority file.

Ah... in case you don't know: when you've done, you can switch back to the X console by pressing Ctrl-Alt-F7.


No it's not working ; After giving login as root and password nothing is coming instead it is again asking for login.

colucix 04-14-2008 03:50 AM

Quote:

Originally Posted by Ashok_mittal (Post 3120464)
No it's not working ; After giving login as root and password nothing is coming instead it is again asking for login.

Even in a virtual console?! Really strange. Have you tried to boot in text mode or in single user mode? To do this put either "3" or "1" respectively at the end of the kernel line in the boot prompt.

Ashok_mittal 04-14-2008 04:19 AM

Quote:

Originally Posted by colucix (Post 3120605)
Even in a virtual console?! Really strange. Have you tried to boot in text mode or in single user mode? To do this put either "3" or "1" respectively at the end of the kernel line in the boot prompt.

The boot prompt is like this:

root(hd0,5)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=LABAL=/ rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img

Now please insinuate me what should i do?

colucix 04-14-2008 04:30 AM

You can follow the instructions here.

Ashok_mittal 04-14-2008 05:07 AM

Quote:

Originally Posted by colucix (Post 3120625)
You can follow the instructions here.

Error which i am getting is this:

session_child_run: could not exec /etc/X11/Xsession default

as instructed i am able to go on the shell but how to get rid off this problem what changes should i do?

Ashok_mittal 04-14-2008 05:19 AM

Quote:

Originally Posted by Ashok_mittal (Post 3120642)
Error which i am getting is this:

session_child_run: could not exec /etc/X11/Xsession default

as instructed i am able to go on the shell but how to get rid off this problem what changes should i do?

I have given selinux=0 in the end of kernel line and now it's working

colucix 04-14-2008 05:33 AM

Quote:

Originally Posted by Ashok_mittal (Post 3120649)
I have given selinux=0 in the end of kernel line and now it's working

I started to suspect something related to selinux. Anyway, now that you're logged in the X server again, you can check all the logs related to the Xsession. Then you can try to investigate which rule of the selinux policy caused the problem. Have you updated the system recently?

Ashok_mittal 04-14-2008 05:51 AM

Quote:

Originally Posted by colucix (Post 3120665)
I started to suspect something related to selinux. Anyway, now that you're logged in the X server again, you can check all the logs related to the Xsession. Then you can try to investigate which rule of the selinux policy caused the problem. Have you updated the system recently?

Thanks for your valuable suggestion actually as i told i am working on a dual boot system and currently i am on windows but surely i will investigate the selinux policy or otherwise i will disable selinux.


All times are GMT -5. The time now is 08:04 AM.