Examples Below are some examples of how to run and use the chmod on Ubuntu Linux If you're a owner of a file called Confidential and want to change the permisions or modes so that user can read / write and execute, group members can read and execute only and others can only read, you will run the commands below sudo chmod u=rwx,g=rx,o=r ConfidentialChmod 700 ~/examplepy chmod 755 ~/examplepy Removing File Permissions with chmod In order to remove read write permissions given to a file, use the following syntax chmod orw exampletxt For our file exampletxt, we can remove read write permissions using chmod for group by running the following command chmod grx exampletxtChmod examples using octal mode First column shows the chmod command , second column shows how the value is calculated for the permission last columns of owner, group, others shows individual octal values and actual bit set on file as seen by ls l For setting any other permission combination for owner, group & How T...