Symbolic mode
Deny execute permission to everyone.
$ chmod a-x chmodExampleFile.txt
Allow read permission to everyone.
$ chmod a+r chmodExampleFile.txt
Make a file readable and writable by the group and others.
$ chmod go+rw chmodExampleFile.txt
Make a shell script executable by the user/owner.
$ chmod u+x chmodExampleScript.sh
Allow everyone to read, write, and execute the file and turn on the set group-ID.
$ chmod =rwx,g+s chmodExampleScript.sh
Comments