Bug 34204: Fix koha-shell under debian 12
In Debian 12/Bookworm: root@kohadevbox:koha$ koha-shell kohadev This account is currently not available. This is because /etc/passwd has /usr/sbin/nologin as shell, which is coming from the --disabled-login param we passed to adduser in koha-create. Looks like a bug has been fixed in adduser, because we didn't have this behavior in bullseye. Context: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625758#72 """ - change and document (adduser(8)) that --disabled-password will behave like --disabled-login and additionally set the shell to /usr/sbin/nologin. """427ade7d91
Test plan: Confirm the above and that the change makes sense. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commit1c03352ae5
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
c2f1a41670
commit
c3d30dc4e8
1 changed files with 1 additions and 1 deletions
2
debian/scripts/koha-create
vendored
2
debian/scripts/koha-create
vendored
|
@ -772,7 +772,7 @@ then
|
|||
then
|
||||
die "Group $username already exists."
|
||||
fi
|
||||
adduser --no-create-home --disabled-login \
|
||||
adduser --no-create-home --disabled-password \
|
||||
--gecos "Koha instance $username" \
|
||||
--home "/var/lib/koha/$name" \
|
||||
--quiet "$username"
|
||||
|
|
Loading…
Reference in a new issue