aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-baselayout/alpine-baselayout.post-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-11-15 13:34:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-11-15 13:34:10 +0000
commit446419207997dc190e7ff4b39c959be60c93cd6d (patch)
treee190c64c1858bd932db6001acaf80840f0e51a75 /main/alpine-baselayout/alpine-baselayout.post-install
parentb973cd7a03e4653bfc031ad805a2594cd383b160 (diff)
downloadaports-446419207997dc190e7ff4b39c959be60c93cd6d.tar.bz2
aports-446419207997dc190e7ff4b39c959be60c93cd6d.tar.xz
main/alpine-baselayout: fix permissions of /etc/shadow
Diffstat (limited to 'main/alpine-baselayout/alpine-baselayout.post-install')
-rw-r--r--main/alpine-baselayout/alpine-baselayout.post-install4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/alpine-baselayout/alpine-baselayout.post-install b/main/alpine-baselayout/alpine-baselayout.post-install
index 1f675d1803..32b9bae171 100644
--- a/main/alpine-baselayout/alpine-baselayout.post-install
+++ b/main/alpine-baselayout/alpine-baselayout.post-install
@@ -33,7 +33,7 @@ if [ -x /sbin/rc ] && [ "$( /sbin/rc --sys )" = "VSERVER" ]; then
fi
# force /etc/shadow to be owned by root and not be world readable
-chown root:root /etc/shadow
-chmod o-rwx /etc/shadow
+chown root:shadow /etc/shadow
+chmod 640 /etc/shadow
exit 0