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.
This commit is contained in:
Denis Smirnov 2015-01-27 13:39:33 +03:00 committed by Michael Shigorin
parent 903e52841b
commit 8df9c40d34

View File

@ -0,0 +1,8 @@
#!/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