mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
/etc/shadow: fix file permissions
This commit is contained in:
parent
587ddc6730
commit
4c9ad98ae2
@ -196,7 +196,7 @@ post_install() {
|
|||||||
ROOT_PWD="`$TOOLCHAIN/bin/cryptpw -m sha512 $ROOT_PASSWORD`"
|
ROOT_PWD="`$TOOLCHAIN/bin/cryptpw -m sha512 $ROOT_PASSWORD`"
|
||||||
|
|
||||||
echo "chmod 4755 $INSTALL/usr/bin/busybox" >> $FAKEROOT_SCRIPT
|
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_user root "$ROOT_PWD" 0 0 "Root User" "/storage" "/bin/sh"
|
||||||
add_group root 0
|
add_group root 0
|
||||||
|
@ -24,3 +24,5 @@ done
|
|||||||
|
|
||||||
# Copy config files, but don't overwrite - this should replace our sample files
|
# Copy config files, but don't overwrite - this should replace our sample files
|
||||||
false | cp -iRp /usr/config/* /storage/.config/ &>/dev/null
|
false | cp -iRp /usr/config/* /storage/.config/ &>/dev/null
|
||||||
|
|
||||||
|
[ -f /storage/.config/shadow ] && chmod 000 /storage/.config/shadow || true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user