Removing file permissions |
|
To remove certain permissions from a file, use this command:
% chmod who-value file...
where who specifies from which type of user these permissions
are to be removed:
u to change the owner's
(``user's'') permissions;
g to change group permissions;
o to change world
(``other'') permissions; or
a to change all permissions:
owner, group and world.
r for read permission;
w for write permission; and
x for execute permission.
For example:
foo:
% chmod o-w foo
bar:
% chmod go-rw bar