You are not logged in.

#1 2010-10-14 16:40:59

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Create File Permissions

So I was able to force globally all newly generated / created directories or folders to be set with 700 permissions by editing /etc/profile and changing the UMASK to '077'. That worked great for my Arch Linux workstation but I am now trying to understand how I can force all newly created files I create to have the same permissions. Is there a separate area I would need to set this up globally? I use 'wget' and 'touch' a lot and would like the files generated  by those commands and or 'vim' to have 700 permissions. Does anyone know how I can accomplish this on my system?


./

Offline

#2 2010-10-14 17:32:06

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: Create File Permissions

umask 077 results in permissions of -rw------- for files and drwx------ for directories.

was that not what you wanted?

(nb: for obvious security reasons, umask won't make files executable by default)

Offline

Board footer

Powered by FluxBB