about
chmod
is used to change the permissions
of files
or directories
usage
chmod options permissions filename
4 stands for `read`
2 stands for `write`
1 stands for `execute`
0 stands for `no permission`
-
chmod 644 filename
-
owner can read and write
-
group can read only
-
others can read only
-
-
read and write by everyone
$ chmod 666 filename $ chmod a=rw filename