LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can not log using root >>> Your session only lasted less than 10 seconds error . . . (https://www.linuxquestions.org/questions/linux-software-2/can-not-log-using-root-your-session-only-lasted-less-than-10-seconds-error-804055/)

eng_mohammedmostafa 04-25-2010 06:00 AM

Can not log using root >>> Your session only lasted less than 10 seconds error . . .
 
Dear,,

Before , i could log in using root user
But , I can not log in using root user.
and i faced the following error:
Your session only lasted less than 10 seconds error . . .


Thanks & Regards,,

AlucardZero 04-25-2010 08:04 AM

Does root's home directory exist and is it owned by root? Does a fail-safe session work?

eng_mohammedmostafa 04-25-2010 10:44 AM

Dear,,

I knew the problem now . . .

Before , I hashed the following lines in /etc/X11/xdm/Xsession file
# elif [ -x /etc/X11/xinit/Xclients ]; then
# exec -l $SHELL -c "$DBUS_LAUNCH /etc/X11/xinit/Xclients"
# else

I knew that i must remove the hash and activate these lines again then i can log in using root again.
But i don't know how to edit this file ( /etc/X11/xdm/Xsession )
Because until now , i can't log in graphical mode using root.
Can i edit it from grub mode?


All times are GMT -5. The time now is 03:39 PM.