umask for cron

Bill Warner wwarner@direct-alliance.com
15 Mar 2001 11:51:25 -0700


Where does cron get its umas settings from?

it doesn't seem to get it from
/etc/profile
/etc/bashrc
/etc/bash_profile
/etc/<any other regular login scripts i have searched through>
~/.profile
~/.bashrc
~/.bash_profile
~/.<any other regular login scripts i have searched through>

is there a default system umask set anywhere for what permissions
files will be created with? or is it only done in the source code of the
program? and is there any way to overide it in cron other than running
programs within a shell script and changing the umask within the script?

useing the script method would mean doing it for each and every cron job
~1000 for one of our servers.

Any help would be great
thanks




-- 
--
Bill Warner
Direct Alliance Corp.
Unix/Linux Admin.