Changes

Jump to: navigation, search

OPS102 - Permissions

174 bytes added, 14:48, 26 September 2023
Controlling Permissions on New Files and Directories
# The modes prohibited by the umask value.
For example, a umask value of 0022 represents the permissions <code>----w--w- </code> (write permission for group and other). Therefore, any new files or directories will be created ''without'' these permissions.
The umask value can be viewed or set with the <code>umask</code> command.  For example, the <code>touch</code> command requests 0666 (<code>rw-rw-rw-</code>) permission on new files. Here are some examplesis a demo of how the umask value can change the assigned permissions:
$ '''umask''' # view the current umask

Navigation menu