cron & file permissions
Howdy,
I've a cron job run daily from /etc/crontab,
the entry looks like this:
0 2 * * * root [ -d /mc/bin ] && /mc/bin/daily;
/mc/bin/daily sets umask
umask 037 # save files rw owner, group read only
then runs a script like so:
[ -e /mc/bin/secure ] && /mc/bin/secure 2>&1 | tee /root/sysstats/secure.log ;
but the permissions on secure.log come out 600:
root@/deb60:~> ls -l sysstats/secure.log
-rw------- 1 root root 67832 Jul 18 02:01 sysstats/secure.log
What do I need to do to make secure.log permissions come out 640?
Thanks,
Mike
--
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Reply to: