Indicator

- => a file

d => a directory

r => read

w => write

x => execute

Example

-rwxrw-r--

drwxrw-r--

Table

type | user | group | other

-- | -- | -- | --

d | rwx | rw- | r--

Owner

u => user

g => group

o => other people (from the outside world)

Change mode for each owner

# Give (+) the others (o) permission to write
chmod o+w <file-or-folder-name>

# Give (+) everyone permission to read and execute
chmod +rx <file-or-folder-name>

# Remove (-) the group's (g) permission to execute
chmod g-x <file-or-folder-name>