Skip to content

Read Write Execute

x - 1 w - 2 r - 4

Combine them :)

example 755

0755/drwxr-xr-x

chmod

  • Change persmissions with chmod
Bash
sudo chmod 644 somefile.sh

or

Bash
sudo chmod u=rw,g=r,o=r somefile.sh

-u user -g group -o other

chown

  • Change ownership
Bash
sudo chown username:groupname somefile.sh