Hide Forgot
Description of problem: Using chntpw for clearing a Windows password does nothing. Version-Release number of selected component (if applicable): chntpw-0.99.6-16.110511 How reproducible: Always Steps to Reproduce: 1. chntpw -u <user> <sam file> 2. select menu item 1 (clear user password) 3. type "y" (write sam file) Actual results: User password not cleared, sam file unchanged Expected results: User password should have been cleared Additional info: This is due to a bug introduced by a patch named "chntpw-110511-robustness.patch". Here is the patch to correct the above patch: diff -r -U 3 chntpw-110511/ntreg.c chntpw-110511.new/ntreg.c --- chntpw-110511/ntreg.c 2011-11-21 14:42:45.369173605 +0100 +++ chntpw-110511.new/ntreg.c 2011-11-21 14:43:38.045876946 +0100 @@ -197,7 +197,10 @@ len = strlen(ibuf); if (len) + { ibuf[len-1] = 0; + --len; + } return len; }
Fixed and building in rawhide here: http://koji.fedoraproject.org/koji/taskinfo?taskID=3591818
F16: https://koji.fedoraproject.org/koji/taskinfo?taskID=3591830 F15: https://koji.fedoraproject.org/koji/taskinfo?taskID=3591832
chntpw-0.99.6-17.110511.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/chntpw-0.99.6-17.110511.fc15
chntpw-0.99.6-17.110511.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/chntpw-0.99.6-17.110511.fc16
chntpw-0.99.6-17.110511.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
chntpw-0.99.6-17.110511.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.