Access Rights
Last updated
Last updated
MIT Resources
https://accessibility.mit.eduMassachusetts Institute of Technology
Every user has a unique username and is member of 1+ groups.
Every file and directory has a owner, a group and a set of permission flags.
Flags specify permissions:
read, write and execute(rwx)
owner, group and others (ugo).
Programs need to have execute (x) permission to run in shell
Only owner can change permissions of a file
chmod has 2 different syntaxes
Syntax 1
assign (=), gives(+), or take away(-) permission
who corresponds to --> u (user), g (group), o (other)
permission corresponds to --> read (r), write (w), execute (x)
chmod who=permission
chmod who+permission
chmod who-permission
chmod n
numeric shortcuts to change mode in a compact way.
format: chmod n filename
n is a 3 digit number, values from 0 to 7
each digit is associated to user, group, other
examples: