chmod
- allows you to change the permissions on a file or directory
- chmod -R - descends through all subdirectories and files
- chmod -v - report actions for all files
- the chmod utility will accept numerical or symbolic arguments
- u = owner, g=group, and o=other, when changing permissions
- when using the symbolic arguments, you can use either a + or - sign to add or remove a permission. If you use an = sign, it will set it to whatever you specify.
example - chmod go+w fileone
example - chmod 755 fileone
example - chmod u+w,g-w,o=r fileone
chown
- allows you to change user and/or group ownership of a file or directory
- only the root user can change file ownership
- chown -R - change a directory along with all of its files and subdirectories
- chown -v - reports actions for all files
- you can change the user and group at the same time like this…
chown user-owner.group-owner file
- you can change only the group like this…
chown .group-owner file
Hope this helps,
ChrisP