I have created a new user account.
I can't access it because of a
How can I repair this type of error?
Since it's you who created the account, I'm assuming you have root access on the system.
Log in as root and edit the file, correcting the error.
To correct this as the affected user:
Some graphical logins provide the ability to choose an alternate login shell. Pick one that is not
bashand log in, fix the error and log out again. Then pick
bashas login shell on the next login.
If this is a remote system, use
ssh -t user@host vim .bash_profile, or
ssh -t user@host "sh -c 'vim .bash_profile'", edit the file and exit.
ssh user@host mv .bash_profile .bash_profile-broken, or
- upload a new
scp(possibly a corrected version of the one fetched using