Change Access Rights
Only the owner of a file can use chmod to change the permissions of a file. The command 'chmod' is used to change permissions. For example, to remove read write and execute permissions on the file mystuff for the group and others, type
% chmod go-rwx mystuff
To give read and write permissions on the file mystuff to all,
% chmod a+rw mystuff