mkimage-profiles/image.in/image-scripts.d/09-tcb-fix
Denis Smirnov 8df9c40d34 Fix /etc/tcb/*/shadow* permissions
Looks like there's some issue with fakeroot as pseudousers
created with useradd during package installation have their
/etc/tcb/*/shadow files with proper permissions ($user:auth)
but shadow- and shadow.lock belong to root:root which makes
passwd(1) fail.
2015-02-02 14:01:42 +03:00

9 lines
178 B
Bash
Executable File

#!/bin/sh -e
# /etc/tcb/<user>/shadow* permissions can be wrong
# if an account was created from installed package
cd /etc/tcb
for u in *; do
chown "$u":auth "$u"/shadow*
done