How to set default umask for cron jobs, please? (On RHEL 6.)
Jobs are started under non-interactive (obviously) no-login (?) shell. Not only I prefer dash over bash. But consider also bash called as /bin/sh
. It seems, that both shells in non-interactive no-login invocation doesn't read any start-up file like /etc/profile
.
Is the default umask hard-wired in shell or it is inherited from cron daemon?
umask …
; script.sh). But I, as admin, want the default umask to be restrict and a release engineer can, for specific job, set an open umask. Not reversed. – Hans Ginzel Apr 22 '15 at 9:11