pavement

Umask

From FreeBSDwiki
Revision as of 19:04, 12 September 2004 by Dave (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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