<div>I looked a little better into shell scripting and realized it after my post. I guess I should&#39;ve looked into it first, sorry for &quot;spamming&quot;.<br></div><div></div><div>I agree with setting the immutable flag in the binaries, wouldn&#39;t that solve the problem for once, no syncs/checks/etc required?</div>

<div></div><div>I mean, you could go as far as using something like tripwire on the gameserver executables, but that&#39;s kind of overkill, no?</div><div></div><br><div class="gmail_quote">On Fri, May 29, 2009 at 3:28 PM, Darren M <span dir="ltr">&lt;<a href="mailto:darren@cpanel.net">darren@cpanel.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">&gt; Maybe I&#39;m misunderstanding your script, but won&#39;t the initial rm<br>
&gt; delete the clients&#39; dirs, thus removing the config files as well as<br>
&gt; possible mods installed, etc?<br>
<br>
</div>The /home/users it rm&#39;s is a list created 2 lines after (or 4 lines<br>
before, depending on which one); just a safety check to be sure you<br>
aren&#39;t using an old list of users it would seem. He mentioned not<br>
having any config files in the /home/install &quot;seed&quot; directory to<br>
prevent overwriting users&#39; config files. If you want to go this far<br>
howver, you may want to just set the immutable flag on the main<br>
binaries for the user as well so they can never change it.<br>
<div class="im"><br>
&gt; &gt; update-files.bsh<br>
&gt; &gt;<br>
&gt; &gt; #!/bin/bash<br>
&gt; &gt; rm -f /home/users<br>
&gt; &gt; chattr -R +i /home/install<br>
&gt; &gt; cd /home<br>
&gt; &gt; ls -1p|grep /|grep -v install|cut -d &quot;/&quot; -f1 &gt; users<br>
&gt; &gt; for user in `cat users`<br>
&gt; &gt; do<br>
&gt; &gt; rsync -av /home/install/cod4 /home/$user/<br>
&gt; &gt; done<br>
&gt; &gt; rm -f /home/users<br>
&gt; &gt; exit $?<br>
</div><div><div class="h5">_______________________________________________<br>
cod mailing list<br>
<a href="mailto:cod@icculus.org">cod@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/cod" target="_blank">http://icculus.org/mailman/listinfo/cod</a><br>
</div></div></blockquote></div><br>