Questions tagged [umask]
The umask tag has no usage guidance.
13
questions with no upvoted or accepted answers
2
votes
0
answers
188
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 ...
2
votes
0
answers
353
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
0
answers
311
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 ...
1
vote
0
answers
79
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 ...
1
vote
0
answers
251
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/...
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 ...
1
vote
0
answers
316
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
0
answers
369
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
0
answers
373
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
0
answers
141
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=,...
0
votes
1
answer
747
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
0
answers
327
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.
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=...