Linked Questions
14 questions linked to/from Why doesn't umask change execute permissions on files?
9 votes
2 answers
6k views
Why doesn't umask set the execute bit? [duplicate]
I'm new to Linux. I have been practicing a few commands. My question is about when I'm creating different files using a different umask. For example: umask 222, as I understand it, is the same as 777 ...
1 vote
1 answer
6k views
umask value for group users to get read, write and execute permissions [duplicate]
what value have I to specify for umask that the group users get read, write and execute?
0 votes
0 answers
37 views
How to change the (u)mask in Linux to get a certain permission for a file? [duplicate]
What value of (u)mask should I use to give the permission -rwxr-xr-- for the files? I tried 012 and 022 and didn't work, how do I subtract 666-754?
0 votes
0 answers
35 views
How to set file permission to 777 using umask [duplicate]
It is true that i may not have understood how umask calculations work. This query is just for a test case (my learning). My intention is that my process should generate a file pdf file1.pdf with full ...
9 votes
4 answers
5k views
facl ignoring the "x" permission but only on files
When I use setfacl to manage on what permissions should the children files / directories have, for some reason the files have all the permissions except the execute ("x") one. someuser@someuser-MS-...
-6 votes
5 answers
5k views
What is masking a mode?
I understand that in GNU/Linux, file permissions are also called a file's mode and that the term mask can mean at least these different meanings: The umask shell builtin (the usual meaning). The umask ...
2 votes
1 answer
7k views
Why is execute permission denied for bin file I created?
I've made a Makefile to simplify my life, and this Makefile calls a script in a bin file I've created. After running my command make something, I got following error : /bin/sh: 1: .docker/bin/echo-...
1 vote
2 answers
5k views
How to umask to get default file permission of 755?
I don't seem to be able to use umask to make sure my default file permission is 755. I need it because every time I check out a script file on CentOS from my version control, it doesn't have the x ...
2 votes
1 answer
4k views
Default permissions on new folder
When a user creates a folder over SFTP it gets permissions of drwxr-xr-x I need it to have drwxrw-r-- I know i can change the permissions with chmod but it would save me lots of time and effort if ...
2 votes
1 answer
5k views
Make every file in a directory executable by default?
I have a directory in which I am storing all my shell scripts and I would like new files to be made executable by default so that I don't have to go chmod u+x [file] everytime. Is there a way to make ...
0 votes
2 answers
326 views
Umask set weird result for files when apply value 0666
umask shows the weird results when applying value: 0666 When apply any value for umask that works as aspected, but when apply 0666 then directory got correct permission value but file got weird value. ...
-1 votes
2 answers
512 views
umask value not working
If I want a directory and file to have the permissions: -rw-r---w- -file drwxr-x-w- - directory why doesn't my umask value of 024 work?
0 votes
0 answers
309 views
Mount BTRFS drive with equivalent to 022 umask?
I feel like I really ought to be able to figure this out, and it's a bit embarrassing to admit that I can't, but... I have a Mint 21 server running Plex Media Server, and my media drive is a 12TB ...
2 votes
1 answer
96 views
LPIC 101-500 exam - umask
Today I took LPIC 101-500 exam and I passed but one question keeps bothering me. The question was: Given the following permissions -rw-r----- what umask should be applied to make all files have the ...