Commit 8df9c40d authored by Denis Smirnov's avatar Denis Smirnov Committed by Michael Shigorin

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.
parent 903e5284
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment