Bug 131499

Summary: passwd command can't be cancelled
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Volker Kuhlmann <bugz57>
Component: BasesystemAssignee: Dr. Werner Fink <werner>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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.