[Fai-commit] r4201 - trunk/lib
Thomas Lange
lange at alioth.debian.org
Sat Dec 16 17:55:44 CET 2006
Author: lange
Date: 2006-12-16 17:55:44 +0100 (Sat, 16 Dec 2006)
New Revision: 4201
Modified:
trunk/lib/fai-savelog
Log:
make local copy of LOGDIR only readable for root and group adm (closes: #402644)
Modified: trunk/lib/fai-savelog
===================================================================
--- trunk/lib/fai-savelog 2006-12-16 16:47:35 UTC (rev 4200)
+++ trunk/lib/fai-savelog 2006-12-16 16:55:44 UTC (rev 4201)
@@ -39,6 +39,9 @@
find $LOGDIR -xdev -size 0 -type f -exec rm {} \;
mkdir -p $thislog
cp -a $LOGDIR/* $thislog
+ chown root $thislog
+ chgrp adm $thislog
+ chmod 0660 $thislog
ln -snf $HOSTNAME $logbase/localhost
ln -snf $FAI_ACTION-$fai_rundate $logbase/$HOSTNAME/last-$FAI_ACTION
ln -snf $FAI_ACTION-$fai_rundate $logbase/$HOSTNAME/last
More information about the Fai-commit
mailing list