baselayout: change permission of shadow and crypttab to 600

This commit is contained in:
Muhammad Herdiansyah 2019-06-20 16:02:09 +07:00
parent fec1edad8c
commit 8c12c9e94f

View File

@ -48,9 +48,12 @@ done
ln -s ../man "$1/usr/local/share/man" ln -s ../man "$1/usr/local/share/man"
# /etc skeleton files. # /etc skeleton files.
for f in crypttab fstab host.conf hosts issue os-release \ for f in fstab host.conf hosts issue os-release \
passwd profile securetty shadow shells; do passwd profile securetty shells; do
install -m 644 "$f" "$1/etc" install -m 644 "$f" "$1/etc"
done done
for f in crypttab shadow; do
install -m 600 "$f" "$1/etc"
done
ln -s /proc/self/mounts "$1/etc/mtab" ln -s /proc/self/mounts "$1/etc/mtab"