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…
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.