Charles.Forsyth20060303-partialeea662d19 years agoHistory
105 lines · 1.4 KB · Text
RawDownload
.TH CHMOD 1.SH NAMEchmod \- change file mode (permissions).SH SYNOPSIS.B chmod.I mode.I file ....SH DESCRIPTION.I Chmodchanges the mode (permissions) of each.I fileaccording to.IR mode ,which may be an octal number or a symbolic change to the existing mode..PPA.I modecan be numerically formed as the.SM ORof the following octal values (a leading.B 8ris ignored):.TF 0000.TP0400read by owner.TP0200write by owner.TP0100execute (search in directory) by owner.TP0070read, write, execute (search) by group.TP0007read, write, execute (search) by others.PD.PPA symbolic.I modehas the form:.IP.RI [ who ].I op permission.PPThe.I whopart is a combination of the letters.B u(for user's permissions),.B g(group) and.B o(other).The letter.B astands for.BR ugo .If.I whois omitted, the default is.BR a ..PPThe.I opfield can be:.B +to add .I permissionto the file's mode,.B -to take away.IR permission ,.B =to assign.I permissionabsolutely (all other bits being reset)..PPThe.I permissionfield is any combination of the letters.B r(read),.B w(write),.B x(execute),.B a(append only),.B l(exclusive access), and.B t(temporary, not archived)..SH SOURCE.B /appl/cmd/chmod.b.PP.SH "SEE ALSO".IR chgrp (1),.IR ls (1),.IR sys-stat (2).SH BUGSThe interpretation of the modes is limited on some host operating systems,particularly variants of Windows.