Questions tagged [umask]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
33 views

Linux Kernel 5.15.1, fstab umask=0022, mount command shows fmask=37777600022,dmask=37777600022

I downloaded and compiled the linux-cacule (5.15 for native ntfs3 support) kernel from the AUR repo. Following the documentation here on the new ntfs3 mount option: https://www.kernel.org/doc/html/...
user avatar
0 votes
1 answer
92 views

umask=0 leads to mount error 32

Like the title say I have some ext4 that mounts well without umask but are innacessible because of permissions, but leads to error wrong fs type when mounted with umask=0 I'm on a live USB. So fstab ...
user avatar
  • 43
0 votes
0 answers
30 views

Secure a folder in a cluster

I have a folder in a cluster that I want to secure by allowing access to me only (read, write and execute). I am new in using clusters, what are the command lines I can use? I have used umask u=rwx,g=,...
user avatar
0 votes
1 answer
145 views

tar extract with user ignores umask on CentOS 8

Usually as far as I know when extracting files with tar the users umask should be used for new permissions. My umask is 0007. So when I create new files they have the permission: -rw-rw---- I have a ...
user avatar
0 votes
1 answer
199 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?
user avatar
1 vote
1 answer
713 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 ...
user avatar
2 votes
0 answers
67 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 ...
user avatar
  • 21
1 vote
2 answers
572 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 ...
user avatar
0 votes
0 answers
132 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.
user avatar
  • 5,980
2 votes
0 answers
143 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 ...
user avatar
2 votes
0 answers
198 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 ...
user avatar
  • 244
0 votes
0 answers
275 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 ...
user avatar
  • 101
1 vote
0 answers
255 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,...
user avatar
  • 111
1 vote
1 answer
964 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 ...
user avatar
  • 129
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'...
user avatar
1 vote
1 answer
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 ...
user avatar
  • 2,698
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 ...
user avatar
2 votes
1 answer
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 ...
user avatar
  • 565
3 votes
1 answer
138 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 ...
user avatar
  • 1,334
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 ...
user avatar
  • 219
8 votes
1 answer
24k 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 /...
user avatar
  • 4,310
3 votes
3 answers
43k 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 ...
user avatar
  • 402
0 votes
1 answer
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-...
user avatar
1 vote
0 answers
298 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: ...
user avatar
  • 111
1 vote
1 answer
12k 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 ...
user avatar
11 votes
3 answers
25k 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 ...
user avatar
  • 338
1 vote
0 answers
347 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 ...
user avatar
0 votes
1 answer
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=...
user avatar
2 votes
1 answer
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 ...
user avatar
  • 4,358
5 votes
1 answer
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 ...
user avatar
  • 351
21 votes
2 answers
19k 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 ...
user avatar
  • 881
9 votes
3 answers
14k 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 ...
user avatar
  • 91
0 votes
2 answers
543 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:...
user avatar
  • 451
9 votes
2 answers
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 ...
user avatar
  • 4,260