Bug 131499 - passwd command can't be cancelled
Summary: passwd command can't be cancelled
Status: RESOLVED INVALID
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: i686 SuSE Linux 10.0
: P5 - None : Major
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-30 06:35 UTC by Volker Kuhlmann
Modified: 2005-10-30 20:44 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Kuhlmann 2005-10-30 06:35:17 UTC
Once the passwd command is running, there's no way to cancel it. This is majorly annoying, and when running as root, actively dangerous - hitting the return key a few times (since this is the only thing which gets any response at all) leaves root with no password being set or asked for at the next login.

Because there isn't a "security" tag to tick I'm setting severity one level up from normal.
Comment 1 Thorsten Kukuk 2005-10-30 17:13:16 UTC
I assume you try Ctrl-C. Blocking Ctrl-C is the only way to make sure that the passwd database is always consistent and will not be corrupted. With Ctrl-D you
can stop changing the password.
Comment 2 Volker Kuhlmann 2005-10-30 20:44:44 UTC
Yes, ^C doesn't work. ^Z doesn't work either, so one would need another shell and a hunt for the pid to kill it.

Any chance of adding a brief note like "(press ctrl-D to quit)" to the initial terminal output of passwd?

There should also be an explicit note upon termination of passwd when an empty password was installed, i.e. is now unset.