<div class="gmail_quote">On Tue, Sep 29, 2009 at 12:06 PM, Bruce Richardson <span dir="ltr"><<a href="mailto:itsbruce@workshy.org">itsbruce@workshy.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, Sep 29, 2009 at 11:57:41AM +0100, - wrote:<br>
> On Mon, Sep 28, 2009 at 9:55 PM, Nix <<a href="mailto:nix@esperi.org.uk">nix@esperi.org.uk</a>> wrote:<br>
<br></div></blockquote><div>[snip] <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
<br>
</div>I frequently use cat to splice standard input into a sequence of files.<br>
Here's a question I once put to a bunch of students I was teaching:<br>
<br>
"If I have the following in /etc/crontab:<br>
<br>
05 06 * * 5 root /usr/bin/find /usr /bin /sbin -type f -perm +4000 | cat \<br>
        /root/suid.orig /root/suid.orig - | sort | uniq -u<br>
<br>
<br>
Then<br>
        a) What am I doing?<br></blockquote><div><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        b) How does it work?<br></blockquote><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        c) Why is /root/suid.orig named twice?"<br></blockquote><div><br>If you didn't list it twice then you would get a list of suid files on the filesystem that weren't in the suid.orig file combined with a list of files in the suid.orig file that dont exist on the filesystem. So err.. I guess it stops it from harassing you after you fail to update the suid.orig file. Unclear if this is a bug or a feature :-)<br>
<br></div></div>Rob.<br>