Ausam/doc/man/man1/chmod.1

Find at most related files.
including files from this version of Unix.

.th CHMOD I 2/8/75
.sh NAME
chmod \*- change mode
.sh SYNOPSIS
.bd chmod
octal file ...
.sh DESCRIPTION
The octal mode
replaces the mode of each of the files.
The mode is constructed from the OR of the
following modes:
.s3
.lp +10 7
4000	set user ID on execution
.mc |
.lp +10 7
2000	make file a locking type
.mc
.lp +10 7
1000	sticky bit for shared, pure-procedure programs (see below)
.lp +10 7
0400	read by owner
.lp +10 7
0200	write by owner
.lp +10 7
0100	execute (search in directory) by owner
.mc |
.lp +10 7
0010	together with bit 2000, turns on autolocking for this file
.mc
.lp +10 7
0007	read, write, execute (search) by others
.s3
.i0
Only the owner of a file (or the super-user) may change its mode.
.s3
If an executable file is set up for sharing (``\*-n'' option
of
.it "ld (I)"
), then mode 1000 prevents the system from
abandoning the swap-space image of the program-text portion
of the file when its last user
terminates.
Thus when the next user of the file executes it,
the text need not be read from the file
system but can simply be swapped in,
saving time.
Ability to set this bit is restricted to the super-user
since swap space is consumed
by the images; it is only worth while for heavily used commands.
.s3
.mc |
.it Chmod
does not affect the modified date of the file.
.mc
.sh "SEE ALSO"
ls (I),
chmod (II),
locking (II).
.sh BUGS