/etc/shadow: fix file permissions

This commit is contained in:
MilhouseVH 2017-12-07 20:12:29 +00:00
parent 587ddc6730
commit 4c9ad98ae2
2 changed files with 3 additions and 1 deletions

View File

@ -196,7 +196,7 @@ post_install() {
ROOT_PWD="`$TOOLCHAIN/bin/cryptpw -m sha512 $ROOT_PASSWORD`"
echo "chmod 4755 $INSTALL/usr/bin/busybox" >> $FAKEROOT_SCRIPT
echo "chmod 000 $INSTALL/etc/shadow" >> $FAKEROOT_SCRIPT
echo "chmod 000 $INSTALL/usr/config/shadow" >> $FAKEROOT_SCRIPT
add_user root "$ROOT_PWD" 0 0 "Root User" "/storage" "/bin/sh"
add_group root 0

View File

@ -24,3 +24,5 @@ done
# Copy config files, but don't overwrite - this should replace our sample files
false | cp -iRp /usr/config/* /storage/.config/ &>/dev/null
[ -f /storage/.config/shadow ] && chmod 000 /storage/.config/shadow || true