Questions tagged [umask]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

How do you use Umask in Linux for creating default special permissions like setuid, setgid, and sticky bits?

How do you use Umask in Linux for special permissions like setuid, setgid, and sticky bits?
0
votes
1answer
86 views

set default file permission to read, write and execute in linux

I need to set default file creation permissions for everyone to 777 [rwx], however umask uses 666 for files: If I need permissions to be 444, I would issue umask 222 [666 - 222 = 444], but the ...
0
votes
0answers
19 views

How to set the default group, file permissions, and folder permissions, for an ext4 mount point?

I have an ext4 disk/partition on my machine and I want to make it so, by default: All files/folders have the group set to groupA All files have: user permissions rw group permissions rw so folks in ...
2
votes
0answers
24 views

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 ...
1
vote
2answers
148 views

umask is 0002 but new file is 662, not 664

I am studying for my RHCSA. Currently learning about UMASK. The issue is that my umask is set to 0002, and I am logged in as a normal user, not root. When I create a dir, its correct, the dir gets ...
0
votes
0answers
75 views

if my umask is 0002 then why does `mkdir dirname` create directories with drwxrwxr-x permission?

If my umask is 0002 then why does mkdir dirname create a directory with drwxrwxr-x permission? I should think that it would create it with d-------w- permission.
2
votes
0answers
70 views

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 ...
2
votes
0answers
143 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
223 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 ...
1
vote
0answers
220 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
812 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 ...
2
votes
2answers
885 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
4k 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 ...
7
votes
1answer
4k 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 ...
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
126 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 ...
7
votes
1answer
22k 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
38k 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
2k 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
280 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: ...
1
vote
1answer
10k 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 ...
11
votes
3answers
23k 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
337 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 ...
5
votes
1answer
5k 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 ...
21
votes
2answers
18k 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 ...
9
votes
3answers
13k 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
518 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:...
8
votes
2answers
5k 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 ...