> On Thu, Oct 19, 2006 at 08:47:45AM +1000, James Gray wrote: > .... > > # Make any generated files only readable by moi umask 077 > > MAILROOT=~/Mail TMP=/tmp/mail-addresses.tmp > ... > > egrep ..... >> $TMP > > This is sorta off topic, but setting umask is not enough. > Someone else could have a file of the same name as $TMP open > already, so the restrictive permissions are ineffective. >
There are also utilities to do this safely. See mktemp (debian package is mktemp) and tempfile (part of debianutils package, I believe). Cheers, - Roger -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
