You can also remove permissions.

In addition to adding permissions, you can also remove permissions. For example, if you own a file and want to remove read and write permission from the group, you can use chmod g-rw :

    % chmod g-rw filename

Get WYNTK: UNIX System Admininistrator now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.