The owner of a file can extend read and write permission to all users.

If you own a file, you can give read permission to other users on the system using the chmod command. For example, to give read permission to all users, the owner can type:

    % chmod a+r filename

where filename is the name of the file or directory that you want to others to be able to read. The syntax a+r says to add read (r) permission to all (a) users.

You can also give write permission to other users using the chmod command. To give write permission to all users, the owner can type:

    % chmod a+w filename

where filename is the name of the file or directory that you want to others to be able to write. As with a+r, the syntax a+w says to give write (w) permission to all (a) users.

You can also give both read and write permission in one command, like this:

    % chmod a+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.