I made a few changes in the PATH in .profile. On restart, gnome booted up with my username. But on entering the password, it goes into a loop and I am unable to login.
2 Answers
try to login from terminal. Ctrl+Alt+F2, then type your username and password and revert your changes in .profile
using nano
-
I need to let you know how it went wrong. I was using 14.04 LTS. Then i tweeked the .profile by adding multiple paths. When I did restart it booted ubuntu gnome directly. I find a usename, but on entering password it loops back. Hence trying set the .profile Aug 6, 2015 at 14:00
-
Now, i keyed in the nano. it said command 'nano' available in '/bin/nano' & '/usr/bin/nano'. the command could not be located bcoz '/bin:/usr/bin' is not included in the PATH environment variable. nano:command not found..... Aug 6, 2015 at 14:02
First login in command line ( Ctrl + Alt + F1).
Then reset your .profile
file (with the 1st command making a backup) :
cp ~/.profile ~/.profile.backup
cp /etc/skel/.profile ~/.profile
Reboot and everything should work properly.
-
I would have suggested to cp back the backup file he made. Your command should also include making a backup of ~/.profile in case there are changes in there that where made prior to the malformed ones ;)– RinzwindAug 6, 2015 at 11:41
-
@Rinzwind plz do let me know of the command line which needs to be added and where its to be inserted in the above set of 2 command lines Aug 6, 2015 at 13:33
-
Just do what I said. 1) Open the terminal. 2) Login 3) Paste the two command and it is done.– hg8Aug 6, 2015 at 13:43
-
Hello, thanks Rinz and hg8 for the assistance. I need to let you know how it went wrong. I was using 14.04 LTS. Then i tweeked the .profile by adding multiple paths. When I did restart it booted ubuntu gnome directly. I find a usename, but on entering password it loops back. Hence trying set the .profile Aug 6, 2015 at 13:53
-