Changing Linux permissions

Changing file permissions

chmod (changing a file mode)

Only the owner of a file can use chmod to change the permissions of a file. The options of chmod are as follows

SymbolMeaning
uuser
ggroup
oother
aall
rread
wwrite (and delete)
xexecute (and access directory)
+add permission
take away permission

For example, to remove read write and execute permissions on the file biglist for the group and others, type

% chmod go-rwx biglist

This will leave the other permissions unaffected.

To give read and write permissions on the file biglist to all,

% chmod a+rw biglist

Leave a Reply