Top "Umask" questions

umask is a Unix command to specify default permissions for the new files, created by the current user.

When is umask() useful?

umask(0); fd = open("/dev/null", O_RDWR); Here's man 2 umask: umask() sets the calling process’s file mode creation mask (…

c umask
Git change default umask when update file

I have a problem with Git. I searched for a solution in Google and in StackOverflow but nothing helps. The …

git permissions umask
How do I set directory permissions in maven output?

I am using the maven-assembly-plugin to package my build. I am able to perform some copying of file sets and …

maven maven-assembly-plugin umask
PHP mkdir() and fopen() does not work - permissions problem? umask problem?

The following PHP script fails to create the directory. It will also fail to create the file (when the directory …

php fopen mkdir umask
Making new files automatically executable?

Is it possible to make all newly created files have the execute permission when they are created? Why can't I …

file unix umask
How to trace where php5-fpm umask settings are coming from on ubuntu

I'd really appreciate any help in tracking down and diagnosing an umask issue on Ubuntu: I'm running php5-fpm with …

apache ubuntu php umask
Unable to load JNA native support library Elasticsearch 6.x

I have installed Elasticsearch 6.x in my Debian 7 (wheezy). I tried to start with service elasticsearch start but its give …

linux elasticsearch jna mount umask
Setting umask in Git / Gitolite

I have set up Git and Gitolite, and at some point I recall having seen an "umask" setting, in one …

git permissions gitolite umask
Setting umask for sshfs mount

If I mount the sshfs server with no umask, i get -rw-rw-r-- on new created files. If I try and …

file-permissions sshfs umask
linux umask for sudo and apache

I want to make 002 the system-wide umask for all users (in Ubuntu). I managed to do so for all regular …

linux ubuntu umask