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:
- Log in as a super-user or as the owner of the directory.
- At the UNIX prompt, type:
chmod a-w /usr/data