I have umask
set to 002
in my Linux server and its working fine while I create file using touch
. But I still have some files that are created with permission contrary to umask
. These problematic files are created as a result of a script that is scheduled via cron
; they have -rw-r-----
permissions but they should have -rw-rw-r--
according to umask
set to 002
. Is there any other factor that controls permission other than umask
?
The OS is SunOS usdyda01 5.10 Generic_150400-14 sun4v sparc SUNW,SPARC-Enterprise-T5220