First page Back Continue Last page Overview Graphics
Example 1-9
Changing permission of a file or directory chmod
To change permission of a given file we use command chmod.
chmod +x file : add executable permission
chmod 700 file : gives full permission to the user and no permission to others.
chmod 755 file: gives full permission to the user and only read and execute permission to the others.
To apply a given permission to all files within a given directory, use chmod -r directory_name