next up previous contents index
Next: chown Up: Appendix 1: Common UNIX Previous: chgrp   Contents   Index

chmod

When it is necessary to modify the permissions on a particular file or group of files this command is the one to use. It takes the form:

chmod <options> <mode> <files>

<mode> has the form: [ugoa...][[+-=][rwxXstugo...]...][,...]


\begin{hanging}
\item{u} the user who owns the file
\item{g} users in the files ...
...group.
\item{o} set the permissions to those other than the group.
\end{hanging}

<options>


\begin{hanging}
\item{-c} give a verbose reporting of only the files changed.
\i...
....
\item{-f} do not print errors about files that were not changed.
\end{hanging}

Example:

chmod g-w ./*

Will remove the group write permissions from all the files in the current directory.

See also: chown, chgrp



Dale Scheetz