Skip to main content

Questions tagged [umask]

The tag has no usage guidance.

22 votes
2 answers
20k views

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 ...
ufk's user avatar
  • 909
12 votes
3 answers
30k views

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 ...
OrangeTux's user avatar
  • 358
9 votes
3 answers
16k views

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 ...
Rob's user avatar
  • 91
9 votes
2 answers
6k views

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 ...
mipadi's user avatar
  • 4,458
8 votes
1 answer
27k views

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 /...
DevSolar's user avatar
  • 4,500
7 votes
1 answer
5k views

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 ...
Doug ward's user avatar
5 votes
3 answers
54k views

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 ...
Cyril N.'s user avatar
  • 416
5 votes
1 answer
6k views

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 ...
nfarrar's user avatar
  • 351
3 votes
1 answer
175 views

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 ...
Pithikos's user avatar
  • 1,654
2 votes
2 answers
1k views

VirtualBox Guest Shared Folder Ignoring umask

I have a folder on my host system (Arch Linux) which is being shared with an Ubuntu VirtualBox guest. Instead of using automount, I am mounting the folder at boot using the following line in my guest'...
Legendary_Linux's user avatar
2 votes
1 answer
2k views

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 ...
Ahmad's user avatar
  • 229
2 votes
1 answer
470 views

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 ...
Mr.Clean's user avatar
2 votes
1 answer
5k views

Show umask of user I can't login to

I know I can show the umask of the current user by simly executing umask on the command line. Is there any way how I can figure out the umask of a user I don't have the permissions to login to? (Also ...
fgysin's user avatar
  • 2,988
2 votes
1 answer
1k views

How to set the default umask in Arch Linux

How can I set the default umask for Arch Linux. I need 0022 but the default is 0027 on my system. I checked etc/profile/ and it says umask 0022 But somewhere another value for umask gets set and I ...
MrLeeh's user avatar
  • 149
2 votes
1 answer
3k views

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 ...
divB's user avatar
  • 589

15 30 50 per page