From 8c12c9e94fc8851f58eb270a54d9780a1c271c12 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Thu, 20 Jun 2019 16:02:09 +0700 Subject: [PATCH] baselayout: change permission of shadow and crypttab to 600 --- core/baselayout/build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/baselayout/build b/core/baselayout/build index 3b24f60b..af74bd1e 100755 --- a/core/baselayout/build +++ b/core/baselayout/build @@ -48,9 +48,12 @@ done ln -s ../man "$1/usr/local/share/man" # /etc skeleton files. -for f in crypttab fstab host.conf hosts issue os-release \ - passwd profile securetty shadow shells; do +for f in fstab host.conf hosts issue os-release \ + passwd profile securetty shells; do install -m 644 "$f" "$1/etc" done +for f in crypttab shadow; do + install -m 600 "$f" "$1/etc" +done ln -s /proc/self/mounts "$1/etc/mtab"