Cannot log in: session lasted less than 10 seconds.
I can no longer logon to ubuntu!!!! I am using 7.10. I think I know the cause of my problem, but I don't know how to fix it. And I really don't feel like having to reinstall ubuntu and all the apps I had before. When I use failsafe terminal mode, I can't really do anything because it cannot find commands such as 'ls' or 'printenv'. When I login to Failsafe GNOME, it just freezes and causes me to shut the computer down through brute force. Any other attempt to login gives me something like this:
'Your session only lasted less than 10 seconds.' Here are the /.xsession-errors details:
process:6150: Gtk-WARNING **: This process is currently running setuid or setgid. This is not a supported use of GTK+. You must create a helper program instead. For further details, see http://
Refusing to initialize GTK+:
/etc/gdm/Xsession: Beginning session setup...
/etc/profile: 17: id: not found
/etc/gdm/Xsession: 191: ls: not found
/etc/gdm/Xsession: Executing default failed, will try to run x-terminal-emulator
exec: 204: x-terminal-emulator not found
I think what caused this problem is the fact that I changed the /etc/environment, the .bashrc, and the ~/.profile file to add some environment variables. I had to do this for a CS project, and I read that if you want to set environment variables, you do it in this file. Anyway, I changed the path variable:
export PATH=$PATH:
Anyways, I'm a noob to Ubuntu and I don't know how to add environment variables. And I believe that has led to my problem above, but I could be mistaken (but I doubt it).
Please help me.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask sahibd27 for more information if necessary.