[Lunar-commits] r14747 - lunar-iso/trunk/lunar-install/sbin

Auke Kok sofar at lunar-linux.org
Mon May 16 10:44:50 UTC 2005


Author: sofar
Date: 2005-05-16 10:44:50 +0000 (Mon, 16 May 2005)
New Revision: 14747

Modified:
   lunar-iso/trunk/lunar-install/sbin/lunar-install
Log:
Initialize and properly set permissions of btmp,wtmp etc.


Modified: lunar-iso/trunk/lunar-install/sbin/lunar-install
===================================================================
--- lunar-iso/trunk/lunar-install/sbin/lunar-install	2005-05-16 10:44:32 UTC (rev 14746)
+++ lunar-iso/trunk/lunar-install/sbin/lunar-install	2005-05-16 10:44:50 UTC (rev 14747)
@@ -752,6 +752,11 @@
 	> $TARGET/etc/lunar/local/config
 	cp /etc/lunar/local/.config $TARGET/etc/lunar/local/
 	
+	# initialize the new machine:
+	touch $TARGET/var/log/{btmp,utmp,wtmp,lastlog}
+	chmod 0644 $TARGET/var/log/{utmp,wtmp,lastlog}
+	chmod 0600 $TARGET/var/log/btmp
+	
         DONE_COPIED="YES"
         echo "Done transferring."
 



More information about the Lunar-commits mailing list