⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chmod.1

📁 操作系统设计与实现源码
💻 1
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:03:26 1996%%Pages: (atend)%%DocumentFonts: (atend)/devps 180 dict def devps begin/res 10.000000 def/y_offset 843 def/X{exch}bind def/mm {transform round X round X itransform} bind def/r{rmoveto}bind def/m{moveto}bind def/l{lineto}bind def/rl{rlineto}bind def/st{stroke}bind def/gs{gsave}bind def/gr{grestore}bind def/cp{currentpoint}bind def/np{newpath}bind def/ct{curveto}bind defsystemdict /setpacking known { /savepacking currentpacking def true setpacking } if/m0{0 0 moveto}bind def/xc{//res div}bind def/yc{//res neg div //y_offset add}bind def/lc{yc X xc X l st}bind def/mc{yc X xc X m}bind def/el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}bind def/ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}bind def/sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}bind def/V{//res neg div //y_offset addcurrentpoint pop Xm}bind def/H{//res div0 transform X round X itransform popcurrentpoint X popmoveto}bind def/h{//res div 0 r}bind def/v{//res neg div 0 X r}bind def/S{X H show}bind def/A{H //res div 1 index stringwidth pop sub 1 index length div 0 3 2 roll ashow}bind def/psize 10 def/height 0 def/cheight { height 0 ne { height } { psize } ifelse } bind def/slant 0 def/FF{findfont X dup 30 div 0 mm pop setlinewidth /psize X def    [psize 0 cheight slant sin slant cos div mul cheight 0 0]    makefont setfont}bind def/shade{gs /dy X def /dx X def np m 0 /dy rl /dx 0 rl 0 /dy neg rl /dx neg 0 rl closepath .9 setgray fillgr}bind def1 setlinecap/resolution res 72 mul def/startFig {	/SavedState save def	userdict maxlength dict begin	currentpoint transform	DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap		setlinewidth setmatrix	itransform moveto	/ury exch def	/urx exch def	/lly exch def	/llx exch def	/y exch 72 mul resolution div def	/x exch 72 mul resolution div def		currentpoint /cy exch def /cx exch def	/sx x urx llx sub div def	/sy y ury lly sub div def	sx sy scale	cx sx div llx sub	cy sy div ury sub translate		/DefFigCTM matrix currentmatrix def	/initmatrix {		DefFigCTM setmatrix	} def	/defaultmatrix {		DefFigCTM exch copy	} def	/initgraphics {		DocumentInitState setmiterlimit setgray setdash 			setlinejoin setlinecap setlinewidth setmatrix		DefFigCTM setmatrix	} def	/showpage {		initgraphics	} def}bind  def/clipFig {	currentpoint 6 2 roll	newpath 4 copy	4 2 roll moveto	6 -1 roll exch lineto	exch lineto	exch lineto	closepath clip	newpath	moveto}bind  def/doclip { llx lly urx ury clipFig } def/endFig {	end SavedState restore}bind  def/globalstart {	fontnum psize slant height resolution currentpoint 	pagesave restore gsave }bind  def/globalend {	grestore moveto	/resolution exch def /height exch def	/slant exch def /psize exch def /fontnum exch def	F	/pagesave save def}bind  def/fontnum 1 def systemdict /setpacking known { savepacking setpacking} ifend/BP{save mark devps begin m0/DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecapcurrentlinejoin currentdash currentgray currentmiterlimit ] cvx def}bind def/EP{end cleartomark restore showpage}def/Encoding-1 256 array def0 1 255 {Encoding-1 exch /.notdef put} forEncoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-BEncoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-bEncoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accentsEncoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessiEncoding-1dup 8#41 /copyright putdup 8#42 /registered putdup 8#43 /trademark putdup 8#44 /logicalnot putdup 8#45 /Eth putdup 8#46 /eth putdup 8#47 /Thorn putdup 8#50 /thorn putdup 8#51 /brokenbar putdup 8#52 /degree putdup 8#53 /divide putdup 8#54 /multiply putdup 8#55 /minus putdup 8#56 /onehalf putdup 8#57 /onequarter putdup 8#60 /threequarters putdup 8#101 /Aacute putdup 8#102 /Acircumflex putdup 8#103 /Adieresis putdup 8#104 /Agrave putdup 8#105 /Aring putdup 8#106 /Atilde putdup 8#107 /Ccedilla putdup 8#110 /Eacute putdup 8#111 /Ecircumflex putdup 8#112 /Edieresis putdup 8#113 /Egrave putdup 8#114 /Iacute putdup 8#115 /Icircumflex putdup 8#116 /Idieresis putdup 8#117 /Igrave putdup 8#120 /Ntilde putdup 8#121 /Oacute putdup 8#122 /Ocircumflex putdup 8#123 /Odieresis putdup 8#124 /Ograve putdup 8#125 /Otilde putdup 8#126 /Scaron putdup 8#127 /Uacute putdup 8#130 /Ucircumflex putdup 8#131 /Udieresis putdup 8#132 /Ugrave putdup 8#133 /Ydieresis putdup 8#134 /Zcaron putdup 8#135 /aacute putdup 8#136 /acircumflex putdup 8#137 /adieresis putdup 8#140 /agrave putdup 8#141 /aring putdup 8#142 /atilde putdup 8#143 /ccedilla putdup 8#144 /eacute putdup 8#145 /ecircumflex putdup 8#146 /edieresis putdup 8#147 /egrave putdup 8#150 /iacute putdup 8#151 /icircumflex putdup 8#152 /idieresis putdup 8#153 /igrave putdup 8#154 /ntilde putdup 8#155 /oacute putdup 8#156 /ocircumflex putdup 8#157 /odieresis putdup 8#160 /ograve putdup 8#161 /otilde putdup 8#162 /scaron putdup 8#163 /uacute putdup 8#164 /ucircumflex putdup 8#165 /udieresis putdup 8#166 /ugrave putdup 8#167 /ydieresis putdup 8#170 /zcaron putpop/Enc-dict 30 dict defEnc-dict /tmpstr1 50 string putEnc-dict /tmpstr2 50 string putEnc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put/AEnc-def { % arguments: the original font's name, encoding nrEnc-dict begintmpstr2 cvs /Enc-no exch def % Remember the number in a stringdup /OrigName exch def % remember the namefindfont dup maxlength dict /newdict exch def % get dictionary for new font{ exch dup /FID ne   { exch newdict 3 1 roll put }   { pop pop } % Ignore FID   ifelse} forallnewdict begin/Encoding  tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval  cvn load  def % Replace encodingcurrentdict /UniqueID known{ /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueIDend % newdict/FNlength OrigName tmpstr1 cvs length def % convert name, remember lengthFNlength 1 add Enc-no length add stringdup 0 OrigName tmpstr1 cvs putintervaldup FNlength (-) putintervaldup FNlength 1 add Enc-no putintervaldup 0 tmpstr1 0 FNlength getinterval putinterval % Add old namecvn dup newdict /FontName 3 2 roll put newdict definefontend % Enc-dict} def/Times-Roman 1 AEnc-def pop/R-1{/Times-Roman-1 FF}def/Times-Bold 1 AEnc-def pop/B-1{/Times-Bold-1 FF}def/Times-Italic 1 AEnc-def pop/I-1{/Times-Italic-1 FF}def/R{/Times-Roman FF}def/B{/Times-Bold FF}def/I{/Times-Italic FF}def%%EndProlog%%Page: 1 1BP/slant 0 def/height 0 def480 V10 R720(CHMOD)S1103(\()S1145(1)S1203(\))S2696(Eighth)S(Edition)296 2989 A4744(CHMOD)S5127(\()S5169(1)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(chmod)S10 R-11378(-)S10 R1460(change)S(access)258 1770 A2053(mode)S2301(for)S2444(\256les)S1248 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1368 V10 B1080(chmod)S1409([)S10 B-11443(-)S10 B1500(R)S10 R1573(])S10 I1645(mode)S1901(\256le)S10 R(...)75 2062 A1536 V9 R720(O)S722(OP)S790(PT)S842(TI)S900(IO)S933(ON)S1001(NS)S1069(S)S1656 V10 B-11080(-)S10 B1137(R)S10 R1440(Change)S1772(hierarchies)S2240(recursively)S1824 V9 R720(E)S722(EX)S780(XA)S848(AM)S916(MP)S998(PL)S1050(LE)S1108(ES)S1166(S)S1944 V10 B1080(chmod)S(755)150 1396 A1571(file)S10 R2080(#)S2155(Owner:)S2483(rwx)S(Group:)285 2665 A2975(r)S10 R-13009(-)S10 R3066(x)S3141(Others:)S3463(r)S10 R-13497(-)S10 R3554(x)S2112 V10 B1080(chmod)S1396(+x)S1528(file1)S1738(file2)S10 R2080(#)S2155(Make)S10 I2409(\256le1)S10 R2607(and)S10 I2777(\256le2)S10 R2975(executable)S2280 V10 B1080(chmod)S1396(a)S10 B-11446(-)S10 B1503(w)S1601(file)S10 R2080(#)S2155(Make)S10 I2409(\256le)S10 R2557(read)S2756(only)S2448 V10 B1080(chmod)S1396(u+s)S1573(file)S10 R2080(#)S2155(Turn)S2376(on)S2501(SETUID)S2886(for)S10 I3029(\256le)S2616 V10 B1080(chmod)S10 B-11396(-)S10 B1453(R)S1551(o+w)S1756(dir)S10 R2080(#)S2155(Allow)S(writing)291 2432 A2748(for)S2891(all)S3017(\256les)S3210(in)S3313(dir)S2784 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S2904 V10 R1080(The)S1269(given)S1524(mode)S1779(is)S1878(applied)S2206(to)S(each)185 2316 A2533(\256le)S2694(in)S2804(the)S2959(\256le)S3120(list.)S3300(If)S3400(the)S10 B-13555(-)S10 B3612(R)S10 R3718(\257ag)S3902(is)S4002(present,)S4351(the)S4507(\256les)S4708(in)S4819(a)S4897(directory)S3024 V(will)157 1080 A1264(be)S1386(changed)S1748(as)S1859(well.)S2110(The)S2294(mode)S2544(can)S2711(be)S2833(either)S3090(absolute)S3451(or)S3561(symbolic.)S3980(Absolute)S4369(modes)S4657(are)S4807(given)S5056(as)S5166(an)S3144 V1080(octal)S1301(number)S1633(that)S1809(represents)S2243(the)S2391(new)S2584(\256le)S2738(mode.)S3011(The)S3193(mode)S3441(bits)S3611(are)S3760(de\256ned)S4081(as)S4190(follows:)S3312 V(4000)200 1260 A1560(Set)S1714(effective)S2093(user)S2286(id)S2389(on)S2514(execution)S2930(to)S3033(\256le's)S3260(owner)S3537(id)S3432 V(2000)200 1260 A1560(Set)S1714(effective)S(group)234 2093 A2352(id)S2455(on)S2580(execution)S2996(to)S3099(\256le's)S(group)234 3326 A3585(id)S3552 V(0400)200 1260 A1560(\256le)S1714(is)S1806(readable)S2173(by)S2298(the)S2446(owner)S2723(of)S2832(the)S2980(\256le)S3672 V(0200)200 1260 A1560(writeable)S1961(by)S2086(owner)S3792 V(0100)200 1260 A1560(executable)S2016(by)S2141(owner)S3912 V(0070)200 1260 A1560(same)S1792(as)S(above,)265 1901 A2191(for)S2334(other)S2566(users)S2798(in)S2901(the)S3049(same)S(group)234 3281 A4032 V(0007)200 1260 A1560(same)S1792(as)S(above,)265 1901 A2191(for)S2334(all)S2460(other)S2692(users)S4200 V1080(Symbolic)S1490(modes)S1777(modify)S2092(the)S2240(current)S2551(\256le)S2705(mode)S2953(in)S3056(a)S3126(speci\256ed)S3509(way.)S3727(The)S3909(form)S4130(is:)S4368 V1260([who])S1526(op)S1651(permissions)S2156({)S2229(op)S2354(permissions)S(...})123 2859 A3007({,)S3105([who])S3371(op)S(...)75 3496 A3596(})S4536 V1080(The)S(possibilities)480 1266 A1775(for)S10 I1922(who)S10 R2118(are)S10 I2271(u)S10 R2321(,)S10 I2375(g)S10 R2425(,)S10 I2479(o)S10 R2529(,)S2583(and)S10 I2757(a)S10 R2807(,)S2861(standing)S3230(for)S3377(user,)S(group,)259 3599 A3887(other)S4123(and)S4298(all,)S4454(respectively.)S4996(If)S10 I5094(who)S4656 V10 R1080(is)S(omitted,)332 1176 A10 I1537(a)S10 R1616(is)S1712(assumed,)S2112(but)S2269(the)S2421(current)S2736(umask)S3027(is)S3123(used.)S3361(The)S3546(op)S3674(can)S3842(be)S10 I3965(+)S10 R4033(,)S10 I4086(-)S10 R4120(,)S4173(or)S10 I4285(=)S10 R4353(;)S10 I4434(+)S10 R4530(turns)S4759(on)S4887(the)S5038(given)S4776 V1080(permissions,)S10 I-11615(-)S10 R1713(turns)S1944(them)S2175(off;)S10 I2351(=)S10 R2449(sets)S2630(the)S2783(permissions)S3293(exclusively)S3781(for)S3929(the)S4082(given)S10 I4335(who)S10 R4502(.)S4557(For)S4727(example)S10 I5098(g=x)S4896 V10 R1080(sets)S1256(the)S(group)234 1404 A1663(permissions)S2168(to)S10 I2271(--x)S10 R2384(.)S5064 V1080(The)S1265(possible)S1622(permissions)S2130(are)S10 I2282(r)S10 R2321(,)S10 I2374(w)S10 R2441(,)S10 I2494(x)S10 R2539(;)S2595(which)S2869(stand)S3109(for)S3255(read,)S3482(write,)S3743(and)S3916(execute;)S10 I4305(s)S10 R4372(turns)S4602(on)S4731(the)S4883(set)S5024(effec-)S5184 V1080(tive)S(user/group)430 1256 A1711(id)S1814(bits.)S10 I2009(s)S10 R2073(only)S2276(makes)S2558(sense)S2801(with)S10 I3005(u)S10 R3080(and)S10 I3250(g)S10 R3300(;)S3353(o+s)S3524(is)S3616(harmless.)S5352 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S5472 V10 B1080(ls)S10 R1147(\(1\),)S10 B1315(chmod)S10 R1606(\(2\).)S7903 V720(Page)S941(1)S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold Times-Italic%%Pages: 1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -