Bug#1145184: debian-edu-config: user not created

Roland Clobus <[email protected]>
Newsgroups gmane.linux.debian.devel.education
Message-ID <cf5d495a-6ab1-4d49-b721-cbb827459330__28939.576335118$1787499091$gmane$org@rclobus.nl>
Package: debian-edu-config
Version: 2.13.0
Severity: important
User: [email protected]
Usertags: debian-edu

Hi,

I'm installing the default server configuration. The user ('user1234', password
'secret_1234') does not get created in the installer. According to the Wiki
[1], this is a very important user. See the automated results in openQA [2].
The openQA setup uses ('testy', 'weakpassword')

Before the installer reboots, I've opened a shell to do some diagnostics.

`/usr/bin/user-setup-apply /target` is called to set up the users.

The root user was been created correctly.

In /target: there is no reference to the user in /target/etc/group,
/target/etc/passwd, /target/home.

I've enabled some debugging in user-setup-apply (set -x) to look that the
issue.

`db_get passwd/make_user` returns 'boolean false' instead of 'true', which is
suspect

I then forced some variables, to try to force the creation of the user:
```
db_set passwd/make-user 'true'
db_set passwd/username 'user1234'
db_set passwd/user-password 'secret_1234'
db_set passwd/user-password-again 'secret_1234'
db_set passwd/user-fullname 'Test user'
```

Side-note: the function 'is_system_user' really checks whether a non-system
user account exists (i.e. a UID in the range 1000-59999 in /target/etc/passwd)

After re-running `user-setup-apply /target`, the user is created without a
password and has a home directory. However upon the attempt to set the
password:
```
+ setpassword test1234 secret_1234 false
...
+ chroot /target chpasswd
chpasswd: (user test1234) pam_chauthok() failed, error:
Authentication token manipulation error
chpasswd: (line 1, user test1234) password not changed
```

`echo "root:newpwd" | chpasswd` works.

I looked a bit at the strace output, the first entry for /dev/log mentions
'pam_edu_nopw', whereas for test1234 it has 'chpasswd'.

With kind regards,
Roland Clobus

[1] https://wiki.debian.org/DebianEdu/Documentation/Trixie/Installation
[2] https://openqa.debian.net/tests/563978
OpenPGP_signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEUFVLM5Bdj7GSJEb+YsV8aqYUlb0FAmqLEaIACgkQYsV8aqYU
lb06JQ/+M85K4RuzPx5bnS2Nxolu/SvIH09d/ZrH2wtA/pW5e1xdIMeNtMdSB1dm
xtc+9IMdNtpStZt3wvlpWuFEZOQqjPCTxRyfBeX4H8BBb8FKzXRI/B/1nyZjOTVX
jvpkwonzlt5Hd4uMx9nhCgYRIu/Jg6+YnJniFgc+8ypGRm9fegQyTLlCO5L1PLIJ
QAw3QKdSlarCrJXXccKTG3PbZ5tvdIlhZSp0fkX7LWbqHFKwVWeTZAcZn8hxmuq+
SMs+Nqb8GtZzz1+sMd7TWhUH6RF+R5og+TeCgSnS7coicLPD8BjIudSoL4IShZ/h
HF95K/NXzbdsRxsw2pdO/cSsv9TMuzqJdLrgvjBnFdvY35r8g8zM1DYymTJ1Quug
kXejXOAJId4UFzsUSG0xrhhi96e4LWxGBe1Ks5uRzo5iIdE1qGoStFK69cnGfymL
Xe/UIasrQdfJU4sooza9DVZNgvDzIIBgkGaDyArwSuQmFKva4+0wHppbeyixjRIn
VjDaQP2g1xetUHhMM58hl52uCGdV7Vl4Vs+GzTmhk8bKqcfunBa/ONP9HoRPYVfR
7lK4lmjYmgH3BXwp4AJAbvk4QhfNvn8GWqbBf536Ay5dO9gqaJax/gd/wKsjyLv7
nTYqEZ2FmffZxi35o7J4Gy2fztzBPV+B+GXZ6TM02FoOsSeV0EI=
=WnTl
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.