Thursday, May 2, 2024
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 5825  / 3 Years ago, fri, october 22, 2021, 1:58:33

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?


More From » command-line

 Answers
3

I've found the best way to kill su during entering of an incorrect password is Control+U followed by Control+D. This should avoid annoying delays. You can also just clear the input with Control+U and re-try typing the password in.


[#22528] Sunday, October 24, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
barted

Total Points: 424
Total Questions: 103
Total Answers: 101

Location: Djibouti
Member since Sun, Feb 27, 2022
2 Years ago
barted questions
;