chmod

Use the chmod (or chown) command to change or assign the permissions mode for directories and data files. For example, to set the /usr/data directory to read-only for everyone:

  1. Log in as a super-user or as the owner of the directory.
  2. At the UNIX prompt, type:

chmod a-w /usr/data