paint-brush
The Devils 0666 File Creation Permissionby@taha-alami-idrissi
246 reads

The Devils 0666 File Creation Permission

by Taha ALAMI IDRISSI2mNovember 10th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Short of coding the file/directory creation process in C, I don't see a way of modifying the default permissions. As far as I can tell, this is hard-coded into standard utilities. Not making files executable by default makes sense: you don't want any random text to be accidentally misconstrued as shell commands. You may be able to get around this programmatically only: i.e. while creating files from within either a C program, where you make the system calls directly or from within a language that allows you to make a low-level syscall.

Company Mentioned

Mention Thumbnail
featured image - The Devils 0666 File Creation Permission
Taha ALAMI IDRISSI HackerNoon profile picture
Taha ALAMI IDRISSI

Taha ALAMI IDRISSI

@taha-alami-idrissi

L O A D I N G
. . . comments & more!

About Author

Taha ALAMI IDRISSI HackerNoon profile picture
Taha ALAMI IDRISSI@taha-alami-idrissi

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Pipfeed
Idcrawl