Is possible to use umask to set file permission as 775?

Hi, all!
Is it possible to use umask and to set the file permission level as 775?

I know I can add chmod into my scripts but I just want to explore the umask option.

Thanks!

Hi.

No. The umask for that would be 002, but it won't create files with executable permissions.

You need to use chmod to make the file executable.