From af19b39a4bb3b09c26594fa49287c61eb7b229bd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 15 Jan 2007 17:16:49 +0000 Subject: [PATCH] * Create wtmp, lastlog. svn path=/nixos/trunk/; revision=7683 --- system/activate-configuration.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system/activate-configuration.sh b/system/activate-configuration.sh index f09a56e8b5d..f10db49da3c 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.