From 936fa69912bb150998b3db6b8f793bfadaed9272 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 25 Dec 2006 19:32:31 +0000 Subject: [PATCH] * Doh. svn path=/nixos/trunk/; revision=7479 --- configuration/activate-configuration.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configuration/activate-configuration.sh b/configuration/activate-configuration.sh index 4a64be2cd4b3..36dfade4769e 100644 --- a/configuration/activate-configuration.sh +++ b/configuration/activate-configuration.sh @@ -43,9 +43,9 @@ mkdir -m 0755 -p /var/log # empty password. if ! test -e /etc/passwd; then rootHome=/root - touch /etc/passwd; chmod 0755 /etc/passwd - touch /etc/group; chmod 0755 /etc/passwd - touch /etc/shadow; chmod 0700 /etc/passwd + touch /etc/passwd; chmod 0644 /etc/passwd + touch /etc/group; chmod 0644 /etc/group + touch /etc/shadow; chmod 0600 /etc/shadow # Can't use useradd, since it complain that it doesn't know us # (bootstrap problem!). echo "root:x:0:0:System administrator:$rootHome:@shell@" >> /etc/passwd