Skip to main content

Questions tagged [umask]

The tag has no usage guidance.

1 vote
0 answers
67 views

Why does the umask not change as expected in Ubuntu 24.04?

When I create a directory or a file in my website directory (/var/www) with sFTP on Ubuntu 24.04 the chmod is 775 for directories and 664 for files. I would like the permissions to be 755 and 644. I ...
Matthijs's user avatar
2 votes
1 answer
459 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
1 vote
0 answers
245 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/...
shayaknyc's user avatar
0 votes
1 answer
585 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 ...
user1148733's user avatar
0 votes
0 answers
137 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=,...
user1447888's user avatar
0 votes
1 answer
702 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 ...
Mike Nathas's user avatar
0 votes
1 answer
743 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?
vikram singh's user avatar
1 vote
1 answer
2k 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 ...
vikram singh's user avatar
2 votes
0 answers
186 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 ...
zogden's user avatar
  • 21
1 vote
2 answers
1k 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 ...
John Conner's user avatar
0 votes
0 answers
325 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.
neubert's user avatar
  • 7,212
2 votes
0 answers
351 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 ...
excessive's user avatar
2 votes
0 answers
310 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 ...
Zlatko's user avatar
  • 276
1 vote
0 answers
314 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,...
Koen's user avatar
  • 111
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

15 30 50 per page