diff --git a/system/activate-configuration.sh b/system/activate-configuration.sh index f09a56e8b5dc..f10db49da3c6 100644 --- a/system/activate-configuration.sh +++ b/system/activate-configuration.sh @@ -34,10 +34,16 @@ done mkdir -m 0755 -p /var/run echo -n > /var/run/utmp # must exist -chmod 664 /var/run/utmp +chmod 644 /var/run/utmp mkdir -m 0755 -p /var/log +touch /var/log/wtmp # must exist +chmod 644 /var/log/wtmp + +touch /var/log/lastlog +chmod 644 /var/log/lastlog + # If there is no password file yet, create a root account with an # empty password.