man(1) Manual page archive

sys-chmod(2) - Unix First Edition Manual Page
11/3/71SYS_CHMOD (II)

NAME chmod -- change mode of file
SYNOPSIS sys chmod; name; mode / chmod = 15.
DESCRIPTION The file whose name is given as the null--terminated stringpointed to by name has its mode changed to mode. Modes are


constructed by oring together some combination of thefollowing:


01 write, non--owner02 read, non--owner 04 write, owner10 read, owner 20 executable40 set user ID on execution


Only the owner of a file (or the super--user) may changethe mode.
FILES
SEE_ALSO
DIAGNOSTICS Error bit (c--bit) set if name cannot be found or ifcurrent user is neither the owner of the file nor the


super--user.

BUGS
OWNER ken, dmr