Bug 39676 - koha-reset-passwd fails
Summary: koha-reset-passwd fails
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: 22.11
Hardware: All Linux
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
: 39675 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-04-18 11:31 UTC by David Liddle
Modified: 2025-04-18 12:01 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***