Questions tagged [umask]
36 questions
22
votes
2 answers
git: how can i config git to ignore file permissions changes
I have some git projects in a linux server.
i use Mac and linux to do my programming.
the problem is that the mac filesystem's permissions doesn't really work well like in linux so all the files seems to be on umask 0755. so whenever i pull my code…
ufk
- 919
12
votes
3 answers
How does local_umask and file_open_mode work?
I had some problems with the filepermissions when local users uploaded their files via vsftp to a server.
I wanted the files to have all 766 permissions. After a lot of trial and error I found out that I had to set the settings like…
OrangeTux
- 358
10
votes
2 answers
Can I set the umask on a specific directory?
I have a fairly restrictive umask setting (0077). This is fine, except I have one directory in which I'd like a more permissive setting (0002) to all files created anywhere under that directory. Is there a way to set a umask on a specific directory,…
mipadi
- 4,518
9
votes
1 answer
How to set umask globally?
I am using a private user group setup, i.e. a user foo's home directory is owned by foo:foo, not foo:users.
For this to work, I need to set the umask to 002 globally.
After a quick grep -RIi umask /etc/*, it seemed for a moment that modifying the…
DevSolar
- 4,560
9
votes
3 answers
How to set default permissions for files moved or copied to a directory?
My question is similar to How to set the default file permissions on ALL newly created files in linux - but differs in important ways:
I want all files created in (or copied to or moved to) a certain directory to inherit a set of default permissions…
Rob
- 91
- 1
- 1
- 2
7
votes
1 answer
How to set system and user-wide umask in OS X Yosemite?
In previous OS X versions we used launchd-user.conf and launchd.conf to set umask values for our client workstations. This does not appear to work in OSX Yosemite.
How to set system and user-wide umask in OS X Yosemite?
Doug ward
- 71
5
votes
3 answers
How to set umask for a folder and it's subfolder?
I'm working on the same directory with some friends and they access it via SSH.
I added us in the same group and defined a sticky bit to keep the user:group values the same.
But when a user create a file/folder, the Write attribute is not defined…
Cyril N.
- 416
5
votes
1 answer
How do you apply umask settings to an account that doesn't log in?
On my Ubuntu 11.04x64 server, I have service accounts running which do not log in and do not have home directories. These service accounts are responsible for running processes which are invoked as services.
When these services created new files, I…
nfarrar
- 351
3
votes
1 answer
Why does umask use this complicated numeric system?
I am trying to learn how to use umask but it seems so complicated.
Besides all the subtractions that I have to make in my head seperately for directories and files every time I see a mask value, the umask seems different at different times(see…
Pithikos
- 1,654
2
votes
1 answer
Where does Debian take the default umask from?
With a fresh ssh login:
$ umask
0007
But:
$ find . -maxdepth 1 -name '.*' -type f | xargs grep 007 | less
$
# grep 007 /etc/profile
#
# grep -i umask /etc/login.defs
# UMASK Default "umask" value.
# UMASK is the default umask…
divB
- 629
2
votes
1 answer
666 permission even after making umask= 0000
I made my umask = 0000. However when I am creating a file it has 666 permission. Although directories get 777 , that's alright.
Also my aim is to create file/dir with permissions 774, I guess umask for this will be 003?
Ahmad
- 229
2
votes
2 answers
What is the equivalent of umask in Finder?
It is not entirely a problem with Finder. It happens system-wise.
Whenever I create a file in osx, the permission is always set to owner read/write and the rest read only
-rw-r--r-- 1 me mygroup 0 9 Aug 23:18 test
How can I set to 'owner and…
Anthony Kong
- 5,318
2
votes
1 answer
Change default umask for KDE
I am attempting to change the default permissions assigned to a file by KDE. I would like to change the umask to 0027 so that the files are created with 750 for the permissions by default instead of 755 with the users. So far however, KDE has…
Mr.Clean
- 21
- 3
2
votes
0 answers
ssh-keygen creates private key with incorrect permissions
When using ssh-keygen without any arguments to generate my ssh keys, it generates both the public and private keys with 644 permissions, making the private key too open to be used. I am running Ubuntu 20.04 and my default umask…
zogden
- 21
2
votes
0 answers
Files/folders created by application have wrong permissions
I've got strange issue.
Newly created folders from Nuke (compositing software) on our network storage with my user are being created with 755 permissions. However, If I open up an console, browse the same location and mkdir new folder it is created…
excessive
- 21