For example, if you want 0666, use umask 0 (or 0111). For 0655, use umask 022.
At least on Linux, this won't create files with +x set. But that may be platform dependent.
--
Mike
(Edit: Added note about +x not getting set, after actually testing my code :))
In reply to Re: permissions, open and chown
by RMGir
in thread permissions, open and chown
by jeffpflueger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |