5427f3afdc
The issue at hand is that: /etc/tcb/USER/shadow gets USER:auth ownership (OK); /etc/tcb/USER/shadow- backup file is root:root (broken); /etc/tcb/USER/shadow.lock file is also root:root (broken). This is observed for all pseudousers created by package installation process within working chroots as well as for users created by deflogin feature; the problem is that e.g. echo USER:PASS | chpasswd will break. Looks like the cuplrit might be fakeroot/faked.
6 lines
156 B
Bash
Executable File
6 lines
156 B
Bash
Executable File
#!/bin/sh -e
|
|
# drop intermediate files not needed in the image
|
|
# which receive broken permissions in fakeroot environment
|
|
|
|
rm -f /etc/tcb/*/shadow{-,.lock}
|