chmod – change the access permissions.
Format :chmod [options] mode file
Eg1: chmod 755 /data1
Here it will give the r(4),w(2),x(1), permissions to file for the owner and group and r,x permissions to others.
Eg2: chmod –r 700 /data2
Here it will give the permissions rwx to owner and no permissions to groups and Others for the directory /data2 recursively.
The full permission of a folder is 777 and the full permission of a file is 666.If a file is executable the full permission will be 777.
