It depends on how you are creating the file. If you are using the creat function, you can set the permission during creation.
umask only filters permissions. Files are generally created with 666 and use the umask to filter from that default. Directories are made with 777 before the umask is used.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.