fix-usr-local.sh: Set owner and group as well as permissions
authorAlexander Barton <alex@barton.de>
Wed, 1 Sep 2010 14:45:41 +0000 (16:45 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 1 Sep 2010 14:45:41 +0000 (16:45 +0200)
contrib/fix-usr-local.sh

index 7744e04..eaf6aec 100755 (executable)
 #
 
 logger -t "fix-usr-local.sh" -s "starting ..."
+
+chown root:wheel /usr/local /usr/local/etc /usr/local/sbin
 chmod 755 /usr/local /usr/local/etc /usr/local/sbin
+
+chown root:wheel /usr/local/etc/nagcollect.conf
 chmod 640 /usr/local/etc/nagcollect.conf
+
+chown root:wheel /usr/local/sbin/nagcollect
 chmod 755 /usr/local/sbin/nagcollect
+
+chown -R root:wheel /usr/local/lib/nagcollect
 chmod -R a+rX /usr/local/lib/nagcollect
+
 logger -t "fix-usr-local.sh" -s "done."