chmod octal file
|
Change the permissions of file to octal , which can be found separately for user, group, and other by adding:
- 4 - read (r)
- 2 - write (w)
- 1 - execute (x)
To form the octal add the values of r, w, or x. The first digit stands for the user, the second stands for the group, and the last digit stands for world.
Ex: chmod 777 file - read, write, execute (rwx) for all
Ex: chmod 755 file - rwx for user, rw for group and world
|