Bug 39676

Summary: koha-reset-passwd fails
Product: Koha Reporter: David Liddle <david.liddle>
Component: Command-line UtilitiesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: robin
Version: 22.11   
Hardware: All   
OS: Linux   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description David Liddle 2025-04-18 11:31:12 UTC
Hello! I discovered today that using the command koha-reset-passwd fails on Koha 22.11.25 with the following error:

env: ‘/bin/admin/set_password.pl’: No such file or directory

The command was run as indicated in --help:

sudo koha-reset-passwd instancename userid

Directly running the underlying script succeeds: 

sudo koha-shell -c '/usr/share/koha/bin/admin/set_password.pl --userid userid' instancename

In this particular case, the userid takes the form of an email address, and I thought perhaps the '@' symbol may have been problematic, but the command also fails for a userid that follows the default pattern of firstname.surname.

Am I doing something wrong, or is there a bug in the command?
Comment 1 Owen Leonard 2025-04-18 12:01:40 UTC
*** Bug 39675 has been marked as a duplicate of this bug. ***