Questions tagged [umask]
The umask tag has no usage guidance.
35 questions
1
vote
0
answers
240
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 ...
2
votes
1
answer
613
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 ...
1
vote
0
answers
304
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/...
0
votes
1
answer
757
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 ...
0
votes
0
answers
158
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
794
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 ...
0
votes
1
answer
806
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?
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 ...
2
votes
0
answers
208
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
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 ...
0
votes
0
answers
337
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
0
answers
379
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
326
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
321
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,...
2
votes
2
answers
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 ...
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'...
2
votes
1
answer
5k
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
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 ...
2
votes
1
answer
3k
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
1
answer
182
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
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 ...
9
votes
1
answer
28k
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 /...
5
votes
3
answers
56k
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
1
answer
3k
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
0
answers
376
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
1
answer
14k
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 ...
12
votes
3
answers
31k
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
0
answers
377
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
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=...
2
votes
2
answers
2k
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
1
answer
6k
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 ...
22
votes
2
answers
20k
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
3
answers
16k
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
2
answers
595
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:...
9
votes
2
answers
6k
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 ...