Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was screwing around and trying to add some environment variables to my path. I must have made a type or something because once I logged out, I could not lob back in. I know I'm not on caps lock or anything and in fact if I type the wrong password I am informed of this. However, when I type the correct password the desktop starts to load and then loops back to the login prompt.

There also no other users on the machine for me to log in as other than guest which does not have the right permissions for me to fix things. Any ideas on where to go from here?

share|improve this question

What happens if you open up a login shell instead of logging into the desktop? (I think the key combination is Alt+F1-F9)

Are you able to login this way and then correct the path issue from there?

share|improve this answer
Just to clarify that's Alt+F1 OR Alt+F2 ,etc – Paul Calabro Nov 13 '12 at 4:28
the combo is ctrl+alt+f1 and no dice bro :( the prompt from the console tells me the login is incorrect, so I have no idea whats going on – Ben Glasser Nov 13 '12 at 4:37
Can you login as root? – Paul Calabro Nov 13 '12 at 4:47
Hmmm... modifying the PATH variable shouldn't have affected your ability to login. The PATH variable just lists places to look for programs. You can just as easily access those programs by typing out their full paths. – Paul Calabro Nov 13 '12 at 4:51
yeah but What if you deleted your PATH, or wrote something like PATH ="PATH:HOME/bin" instead of PATH ="$PATH:HOME/bin" then you're env would be able to find any programs. and no i never enabled root logon – Ben Glasser Nov 13 '12 at 8:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.