crontab and umask
After changing the umask in /etc/bashrc and /etc/csh.cshrc from 022 to 002 I'd expect that my scripts would use the new umask. Well they do next time I log in and run them by hand. But the crontab seems to reject the new umask. I have tried to restart the demon. I have even tried to reboot the server. It still uses the old umask. Is there some place special I have to change the umask when running scripts from the crontab?
Thanks /mj |
What exactly did you place in your /etc/bashrc file and shouldn't that be /home/user/.bashrc ? The default one to use for global setups is /etc/profile
|
Well I figured since the umask already being set in /etc/bashrc with following lines
Code:
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then Code:
umask 002 BTW all servers are installed with Fedora Core 4 Test (last test release as I recall) and just this one is behaving odd. Thanks again /mj |
All times are GMT -5. The time now is 02:20 AM. |