When I type passwd, I get

Changing password for <user>.
(current) UNIX password:

Now suppose at this point I change my mind and I decide to stay with my old password. What should I do?

Ctrl + C doesn't work. The only way I found is to use a second command line to find out the PID or the running passwd process and then feed it to kill -9 (the standard kill doesn't work either).

Is there a better way, preferably not involving a second command line?


passwd has switched the terminal in completely raw mode --- it will simply read everything you throw at it, included your Ctrl-C and the normally connected to "stop and go background" Ctrl-Z.

The best strategy is simply press Enter and wait for the error:

[romano:~] 10 % passwd                                               
Changing password for romano.
(current) UNIX password: 
passwd: Authentication token manipulation error
passwd: password unchanged

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

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