[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: woody cron not honoring umask



On Mon, Jul 10, 2000 at 09:20:10PM -0400, Ben Collins <bcollins@debian.org> spake forth:
> On Mon, Jul 10, 2000 at 05:52:43PM -0700, Brian F. Kimball wrote:
> > Hi, I've been noticing for the past few weeks that woody's cron (potato
> > has the same version) no longer honors my umask of 077, which is set in
> > my ~/.bashrc.  Multiple programs run from my normal user's crontab are
> > now creating files of mode 0644.  I haven't changed any of cron's
> > conffiles and I verified this by putting "* * * * * touch
> > $HOME/umasktest" in a fresh user's crontab.
> > 
> > I was about to file an RC bug but I realized that this might be a bash
> > problem, so I decided to dump this issue on more informed people.
> 
> $HOME/.bashrc is only loaded for login shells, not for non-interactive
> shells like in cron.

Not quite... it reads .bashrc for interactive non-login shells,
.bash_profile for login shells :). Unfortunately the effect is the same when
run from cron...

-- 
Mike Markley <mike@markley.org>
PGP: 0xA9592D4D 62 A7 11 E2 23 AD 4F 57  27 05 1A 76 56 92 D5 F6
GPG: 0x3B047084 7FC7 0DC0 EF31 DF83 7313  FE2B 77A8 F36A 3B04 7084

Beam me up, Scotty!



Reply to: