The document explains Linux file permissions using chmod. It states that chmod uses a three-part notation to set permissions for the file's user, group, and others. It provides an example assigning read, write, and execute permissions to both the user and group using chmod ug+rwx filename. The document also shares a table that details the numeric representation and operators for setting permissions.
The document explains Linux file permissions using chmod. It states that chmod uses a three-part notation to set permissions for the file's user, group, and others. It provides an example assigning read, write, and execute permissions to both the user and group using chmod ug+rwx filename. The document also shares a table that details the numeric representation and operators for setting permissions.
The document explains Linux file permissions using chmod. It states that chmod uses a three-part notation to set permissions for the file's user, group, and others. It provides an example assigning read, write, and execute permissions to both the user and group using chmod ug+rwx filename. The document also shares a table that details the numeric representation and operators for setting permissions.
The document explains Linux file permissions using chmod. It states that chmod uses a three-part notation to set permissions for the file's user, group, and others. It provides an example assigning read, write, and execute permissions to both the user and group using chmod ug+rwx filename. The document also shares a table that details the numeric representation and operators for setting permissions.
Download as DOCX, PDF, TXT or read online from Scribd
Download as docx, pdf, or txt
You are on page 1of 2
Whatever goes before the plus sign is the level of permission, and
whatever goes after is the type of permission. User permission (for
yourself) is u, group permission is g, and other is o. So, to assign permission to both yourself and the file’s group, enter:
$ chmod ug+x header
You can also assign multiple types of permissions:
$ chmod ug+rwx header
Read by owner 400
Write by owner 200 Execute by owner 100 Read by group 40 Write by group 20 Execute by group 10 Read by others 4 Write by others 2 Execute by others 1 Access class Operator Access Type
u (user) + (add access) r (read)
g (group) - (remove access) w (write)
x o (other) = (set exact access) (execute) a (all: u, g, and o)