pavement

Umask

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
 
Line 9: Line 9:
  
 
Which means your default files will be created with -rwxr-x--- permissions.
 
Which means your default files will be created with -rwxr-x--- permissions.
 +
[[Category:System Commands]] [[Category:FreeBSD Terminology]]

Revision as of 10:23, 18 October 2004

umask defines what permissions files are given when you create them. The umask is set in your .profile (or shell profile, like .cshrc or .bashrc, etc) and will be set with the simple line (just like you would give on the command line):

umask xxx

where xxx is the inverse of the numeric_permissions that you want the file to have. To clarify: you have to subtract your umask value from 777 to get the umask value that will vige you the permissions you want.

If you set a umask of 027 and then subtract it from 777 means your files have a default permission of 750

Which means your default files will be created with -rwxr-x--- permissions.

Personal tools