umask for cron

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: BillWarnerwwarner@direct-alliance.com
Date:  
Subject: umask for cron
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.