Subject: Re: umask and cron
To: Greg MATTHEWS <G.Matthews@cs.ucl.ac.uk>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
List: netbsd-help
Date: 03/09/2002 04:59:32
On March 8, 2002 10:43 am, Greg MATTHEWS wrote:
> the security check is forever telling me that i have the wrong permissions
> for /usr/pkgsrc. that directory and all the directories under it have
> permissions of 775 instead of 755. my crontab (under root) does a sup for
> pkgsrc every night. how can i ensure the tree is written with the correct
> mask?

Here is my CVS crontab entry showing how to set up for the command.  I am sure
you can adapt this to your sup command.

30 03 * * * umask 022; cd /usr/NetBSD/cvs; cvs -q update

-- 
D'Arcy J.M. Cain <darcy@netbsd.org>
http://www.NetBSD.org/