Changine File Permissions
- Use the chmod command to change file permissions.
- The permissions are encoded as an octal number.
chmod 755 file # Owner=rwx, Group&Other=r-x (script) chmod 500 file2 # Owner=r-x, Group&Other=--- chmod 644 file3 # Owner=rw-, Group&Other=r-- (data) chmod +x file # Add execute permission to file chmod o-r file # remove read permission for others chmod a+w file # Add write permission for everyone
Notes:
No notes for slide 30