Does your password contain any of the following symbols:
- = , $
?
!
- which it obviously doesn't like! Which is odd, because it was OK before
Some non-alphanumeric characters have special meanings on the command lines:-
Try the following:-
echo !2
compared to:
echo '!2'
Then (if you don't mind your password being in your shell history file) try:
echo
your_passwordIf the output is not what you expected then it's because part of it is being expanded by the shell.
[EDIT] Ah yes, just seen you were getting this:-
bash: <someCharsInPassword>: event not found
Which explains it.
The shell replaces !X with whatever is entry 'X' in the shell's history. i.e.
$ history | grep 11
11 ./pamtest.solaris2 -user wibble
$ echo abc!11def
echo abc./pamtest.solaris2 -user wibbledef
abc./pamtest.solaris2 -user wibbledef
If I try something that doesn't exist in the shell's history, I get:-
$ echo !abcd
bash: !abcd: event not found