First page Back Continue Last page Graphics
Linux File Permissions
The filesystem also uses the umask for default rights assigned to created files.
- umask - display current UMASK
- umask xyz - sets new UMASK to octal permissions, where x=user, y=group and z=other permissions as usual.
When a new file or directory is created by a user, the system sets its access privileges based on the user’s umask.
- file access = default permissions – umask
- It's actually a NAND, not a subtraction.
Default access permissions are always:
- 777 for a directory or executable file
- 666 for any other files