Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [umask]

The tag has no usage guidance.

0
votes
0answers
21 views

Permission of files written by Word under Wine

When I run Microsoft Office 2010 under Wine 3.0 (in Ubuntu Bionic), every .doc or .docx file written by Word gets executable permission. It does not matter if the file existed before or nor. My ...
0
votes
0answers
17 views

Why umask application needs the negation step?

From Wikipedia article: In boolean logic the application of the mask can be represented as C: (P&(~Q)) This says that the file's permission mode (C) is a result of a logical AND ...
1
vote
0answers
40 views

Why do modern systems set umasks to 0022 instead of 0002?

I never really got into this topic a lot, but from the good old days, I remember you'd want your umask to 0002 (so new files created are only writable by you, not by the group). Similar for ...
0
votes
0answers
61 views

Debian global umask

I've searched for many-many ways to set global umask in Debian, but they didn't works as I need or didn't work at all. I have a laptop which is used by couple of people. I can handle setting their ...
0
votes
0answers
49 views

set umask for vscode/atom/sublime

I opened my terminal then typed umask 022 then I tried all 3 editors but everytime I create a folder the permission becomes 775(I want 755) and the files become 664(I want 644) Is there a way to set ...
9
votes
3answers
15k 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 ...
1
vote
0answers
128 views

umask blocks either Plex or Nextcloud access to external fat32 HDD

Trying to make my superPi (with Plex, Nextcloud, VPN), I have a permissions problem on my external HDD: I have attached an external HDD to my Raspberry Pi, that holds all my media (photos, homevideos,...
1
vote
1answer
405 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 ...
0
votes
1answer
411 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'...
0
votes
1answer
2k 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 ...
5
votes
1answer
3k 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 ...
21
votes
2answers
16k 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 ...
5
votes
1answer
4k 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 ...
8
votes
3answers
11k 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 ...
0
votes
2answers
428 views

Why does different parameters for umask result in the same file permissions?

I tried changing umask settings for some files as: umask 0012 for file c: -rw-rw-r-- 1 unipro unipro 0 2010-10-15 11:30 c umask 0013 for file d: -rw-rw-r-- 1 unipro unipro 0 2010-10-15 11:...
2
votes
1answer
2k 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 ...
3
votes
1answer
103 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 ...
2
votes
1answer
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 ...
4
votes
1answer
16k 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 /...
2
votes
2answers
27k 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 ...
0
votes
1answer
1k views

group permissions for scp

We have a server running as a firebird user. We want to scp files to the server that are need by firebird but copied as another user: it-test. What is the best way to set that up on the server-...
1
vote
0answers
250 views

OS X: change root umask for su?

In recent versions of OS X (10.6+), the sudo command by default takes the "union" (bitwise or) of 0022 and the caller's user mask. This can lead to problems if the umask is more restrictive than 0022: ...
7
votes
1answer
3k 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 ...
1
vote
1answer
7k views

I get 700 when I make a test file, but umask is 0002? Why isn't it 664 ?

Where do the default values of 666 and 777, for files and directories respectively, get stored? umask 0002 touch dummy ls -l Tells me that dummy's permissions are 700 as opposed to the expected ...
1
vote
0answers
310 views

SVN export yields different file permissions on 2 systems with same umask

I have a machine with Ubuntu 10.10 and a machine with Ubuntu 11.10. When I do a svn export on the 10.10 machine, this gives all directories a 755 permission. The 11.10 machine sets the directories to ...
0
votes
1answer
2k views

How can I mount ext3 with restricted permissions, like setting uid, gid and umask?

I want to mount an ext3 filesystem on a device with uid, gid, umask options set. When I use these options during mount, I get an error. Below is the command I am using to mount: mount -t ext3 -o uid=...
2
votes
1answer
1k views

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 ...