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

Re: woody cron not honoring umask



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.

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'



Reply to: