{"id":286222,"date":"2023-10-27T20:09:50","date_gmt":"2023-10-27T12:09:50","guid":{"rendered":"https:\/\/lrxjmw.cn\/qxglmlczyqxx.html"},"modified":"2023-10-27T20:09:50","modified_gmt":"2023-10-27T12:09:50","slug":"qxglmlczyqxx","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/qxglmlczyqxx.html","title":{"rendered":"\u6743\u9650\u7ba1\u7406\u547d\u4ee4chmod\uff08\u91cd\u8981\uff09\uff1a\u6743\u9650\u4fee\u6539\u4e86linuxstudy.txt"},"content":{"rendered":"

\u6743\u9650\u7ba1\u7406\u547d\u4ee4<\/a>chmod\uff08\u91cd\u8981\uff09<\/p>\n

\u4e8b\u4f8b1\uff1a<\/p>\n

\n

1<\/span>root@atomy-virtual<\/span>-machine:\/tmp#\u00a0ls\u00a0-l\u00a0linuxstudy.list\u00a0<\/span>
2<\/span>-rw-r--r--\u00a01<\/span>\u00a0root\u00a0root\u00a00<\/span>\u00a05<\/span>\u6708\u00a0\u00a010<\/span>\u00a018<\/span>:53<\/span>\u00a0linuxstudy.list<\/span>
3<\/span>root@atomy-virtual<\/span>-machine:\/tmp#\u00a0chmod\u00a0u+x\u00a0linuxstudy.list\u00a0<\/span>
4<\/span>root@atomy-virtual<\/span>-machine:\/tmp#\u00a0ls\u00a0-l\u00a0linuxstudy.list\u00a0<\/span>
5<\/span>-rwxr--r--\u00a01<\/span>\u00a0root\u00a0root\u00a00<\/span>\u00a05<\/span>\u6708\u00a0\u00a010<\/span>\u00a018<\/span>:53<\/span>\u00a0linuxstudy.list<\/span>
<\/code><\/pre>\n<\/p>\n

\u4e0a\u8ff0\u4e8b\u4f8b\u4e2d\u6211\u4eec\u7528chmodu+xlinuxstudy.list\u53e5\u5b50\u66f4\u6539\u4e86linuxstudy.list\u6587\u4ef6\u7684\u6743\u9650\uff0c\u5176\u6db5\u4e49\u662f\u8d4b\u4e8e\u8be5\u6587\u4ef6\u7684\u62e5\u6709\u8005\u6267\u884c\u6743\u9650\u3002<\/p>\n

\u4e8b\u4f8b2\uff1a<\/p>\n

\n

1<\/span>root@atomy-virtual<\/span>-machine:\/tmp#\u00a0chmod\u00a0g+w,o-r\u00a0linuxstudy.list\u00a0<\/span>
2<\/span>root@atomy-virtual<\/span>-machine:\/tmp#\u00a0ls\u00a0-l\u00a0linuxstudy.list\u00a0<\/span>
3<\/span>-rwxrw----\u00a01<\/span>\u00a0root\u00a0root\u00a00<\/span>\u00a05<\/span>\u6708\u00a0\u00a010<\/span>\u00a018<\/span>:53<\/span>\u00a0linuxstudy.list<\/span>
<\/code><\/pre>\n<\/p>\n

\u53ef\u4ee5\u540c\u65f6\u66f4\u6539\u591a\u4e2a\u6743\u9650\uff0c\u7528\u5192\u53f7\u5206\u9694\u5373\u53ef\u3002\u4e0a\u8ff0\u53e5\u5b50\u4ee4\u7528\u6237\u7ec4\u62e5\u6709\u5199\u7684\u6743\u9650\uff0c\u53bb\u4e0d\u4ec5\u5176\u4ed6\u4eba\u8bfb\u7684\u6743\u9650\u3002<\/p>\n

\u4e8b\u4f8b3\uff1a<\/p>\n

\n

1<\/span>root@atomy-virtual<\/span>-machine:\/tmp#\u00a0chmod\u00a0g=rwx\u00a0linuxstudy.list\u00a0<\/span>
2<\/span>root@atomy-virtual<\/span>-machine:\/tmp#\u00a0ls\u00a0-l\u00a0linuxstudy.list\u00a0<\/span>
3<\/span>-rwxrwx---\u00a01<\/span>\u00a0root\u00a0root\u00a00<\/span>\u00a05<\/span>\u6708\u00a0\u00a010<\/span>\u00a018<\/span>:53<\/span>\u00a0linuxstudy.list<\/span>
<\/code><\/pre>\n<\/p>\n

\u6211\u4eec\u4e5f\u53ef\u4ee5\u76f4\u63a5\u7528=\u6765\u8d4b\u4e8e\u6743\u9650\uff01<\/p>\n

\u4e0d\u8fc7\uff0c\u6211\u4eec\u5728\u5b9e\u9645\u64cd\u4f5c\u4e2d\u7528\u7684\u6700\u591a\u7684\u5e76\u4e0d\u662f\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u800c\u662f\u7528\u6570\u5b57\u6765\u8868\u793a\u3002<\/p>\n

\u4e8b\u4f8b4\uff1a<\/p>\n

\n

1<\/span>root@atomy-virtual<\/span>-machine:\/tmp#\u00a0chmod\u00a0640\u00a0linuxstudy.list\u00a0<\/span>
2<\/span>root@atomy-virtual<\/span>-machine:\/tmp#\u00a0ls\u00a0-l\u00a0linuxstudy.list\u00a0<\/span>
3<\/span>-rw-r-----\u00a01<\/span>\u00a0root\u00a0root\u00a00<\/span>\u00a05<\/span>\u6708\u00a0\u00a010<\/span>\u00a018<\/span>:53<\/span>\u00a0linuxstudy.list<\/span>
<\/code><\/pre>\n<\/p>\n

640\u4ee3\u8868\u8981\u5c06\u6743\u9650\u66f4\u6539\u4e3arw-r-----<\/p>\n

\u4e8b\u4f8b5\uff1a\u5173\u4e8e-R\uff0c\u9012\u5f52\u66f4\u6539\u6743\u9650\u7684\u64cd\u4f5c<\/p>\n

\u521b\u5efa\u4e00\u4e2a\u9012\u5f52\u7684\u6587\u4ef6\u5939\uff0c\u4e24\u4e2a\u6587\u4ef6\u5939a\u548cb\u7684\u6743\u9650\u5982\u4e0b\uff1a<\/p>\n

\n

1<\/span>root@atomy-virtual-machine:\/tmp#\u00a0mkdir\u00a0-p\u00a0\/tmp\/a\/b<\/span>
2<\/span>root@atomy-virtual-machine:\/tmp#\u00a0ls\u00a0-ld\u00a0\/tmp\/a<\/span>
3<\/span>drwxr-xr-x\u00a03<\/span>\u00a0root\u00a0root\u00a04096<\/span>\u00a05<\/span>\u6708\u00a0\u00a010<\/span>\u00a019<\/span>:12<\/span>\u00a0\/tmp\/a
4<\/span>root@atomy-virtual-machine:\/tmp#\u00a0ls\u00a0-ld\u00a0\/tmp\/a\/b<\/span>
5<\/span>drwxr-xr-x\u00a02<\/span>\u00a0root\u00a0root\u00a04096<\/span>\u00a05<\/span>\u6708\u00a0\u00a010<\/span>\u00a019<\/span>:12<\/span>\u00a0\/tmp\/a\/b
<\/code><\/pre>\n<\/p>\n

\u66f4\u6539\u6587\u4ef6\u5939a\u7684\u6743\u9650\uff0c\u4e4b\u540e\u67e5\u770b\u4e8c\u8005\u7684\u6743\u9650\uff1a<\/p>\n

\n

1<\/span>root@atomy-virtual-machine:\/tmp#\u00a0chmod\u00a0777\u00a0\/tmp\/a<\/span>
2<\/span>root@atomy-virtual-machine:\/tmp#\u00a0ls\u00a0-ld\u00a0\/tmp\/a<\/span>
3<\/span>drwxrwxrwx\u00a03<\/span>\u00a0root\u00a0root\u00a04096<\/span>\u00a05<\/span>\u6708\u00a0\u00a010<\/span>\u00a019<\/span>:12<\/span>\u00a0\/tmp\/a
4<\/span>root@atomy-virtual-machine:\/tmp#\u00a0ls\u00a0-ld\u00a0\/tmp\/a\/b<\/span>
5<\/span>drwxr-xr-x\u00a02<\/span>\u00a0root\u00a0root\u00a04096<\/span>\u00a05<\/span>\u6708\u00a0\u00a010<\/span>\u00a019<\/span>:12<\/span>\u00a0\/tmp\/a\/b
<\/code><\/pre>\n<\/p>\n

\u53ef\u4ee5\u53d1\u89c9\u6211\u4eec\u53ea\u6539\u53d8\u4e86\u6587\u4ef6\u5939a\u7684\u6743\u9650\uff0c\u6587\u4ef6\u5939b\u7684\u6743\u9650\u6ca1\u6709\u53d8\u5316\u3002\u5047\u5982\u6211\u4eec\u6709\u4e00\u4e2a\u987b\u8981\uff0c\u6539\u7248\u4e00\u4e2a\u76ee\u5f55\u6743\u9650\u65f6\uff0c\u8be5\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u4e5f\u968f\u7740\u6539\u53d8\u3002\u6211\u4eec\u5c06\u5176\u6743\u9650\u6539\u4e3a766\u8bd5\u8bd5\uff1a<\/p>\n

\n

1<\/span>root@atomy-virtual-machine:\/tmp#\u00a0chmod\u00a0-R\u00a0766\u00a0\/tmp\/a<\/span>
2<\/span>root@atomy-virtual-machine:\/tmp#\u00a0ls\u00a0-ld\u00a0\/tmp\/a<\/span>
3<\/span>drwxrw-rw-\u00a03<\/span>\u00a0root\u00a0root\u00a04096<\/span>\u00a05<\/span>\u6708\u00a0\u00a010<\/span>\u00a019<\/span>:12<\/span>\u00a0\/tmp\/a
4<\/span>root@atomy-virtual-machine:\/tmp#\u00a0ls\u00a0-ld\u00a0\/tmp\/a\/b<\/span>
5<\/span>drwxrw-rw-\u00a02<\/span>\u00a0root\u00a0root\u00a04096<\/span>\u00a05<\/span>\u6708\u00a0\u00a010<\/span>\u00a019<\/span>:12<\/span>\u00a0\/tmp\/a\/b
<\/code><\/pre>\n<\/p>\n

\u5173\u4e8erwx\u6743\u9650\u7684\u8865\u5145\u6743\u9650\u5bf9\u4e8e\u6587\u4ef6\u5bf9\u4e8e\u76ee\u5f55<\/p>\n

r\u2014\u2014\u8bfb\u6743\u9650<\/p>\n

\u53ef\u4ee5\u67e5\u770b\u6587\u4ef6\u5185\u5bb9<\/p>\n

\u53ef\u4ee5\u5217\u4e3e\u76ee\u5f55\u4e2d\u7684\u5185\u5bb9<\/p>\n

w\u2014\u2014\u5199\u6743\u9650<\/p>\n

\u53ef\u4ee5\u66f4\u6539\u6587\u4ef6\u5185\u5bb9<\/p>\n

\u53ef\u4ee5\u5728\u76ee\u5f55\u4e2d\u521b\u5efa\u3001\u5220\u9664\u6587\u4ef6<\/p>\n

x\u2014\u2014\u6267\u884c\u6743\u9650<\/p>\n

\u53ef\u4ee5\u6267\u884c\u6587\u4ef6\u00b7<\/p>\n

\u53ef\u4ee5\u6b65\u5165\u76ee\u5f55<\/p>\n

\u975e\u5e38\u6ce8\u610fw\u6743\u9650\uff0c\u4e3e\u4e2a\u53cd\u4f8b\uff1a<\/p>\n

\u4e00\u4e2a\u76ee\u5f55\u7684\u6743\u9650\u662f777\uff0c\u8be5\u76ee\u5f55\u4e0b\u4e00\u4e2a\u6587\u4ef6\u7684\u6743\u9650\u662f700\uff0c\u8fd9\u4e48\u521b\u5efa\u4e86\u4e00\u4e2a\u540c\u7ec4\u7528\u6237\uff0c\u80fd\u591f\u5220\u6389\u8fd9\u4e2a\u6587\u4ef6\uff1f<\/p>\n

\u7b54\u6848\u662f\u53ef\u4ee5\u7684\uff01<\/p>\n

\u7531\u4e8e\u5bf9\u4e8e\u6587\u4ef6\u6765\u8bf4linux\u5185\u6838\uff0cw\u6743\u9650\u53ea\u662f\u9488\u5bf9\u66f4\u6539\u6587\u4ef6\u5185\u5bb9\uff0c\u800c\u5220\u6389\u6587\u4ef6\u7684\u6743\u9650\u5728\u76ee\u5f55\u4e2d\uff01<\/p>\n

\u6240\u4ee5\uff0c\u9898\u76ee\u63d0\u53ca\u76ee\u5f55\u6743\u9650\u662f777\uff0c\u4e0d\u7ba1\u6587\u4ef6\u662f\u54ea\u4e9b\u6743\u9650\uff0c\u90fd\u53ef\u4ee5\u88ab\u5220\u6389\u3002<\/p>\n

chown<\/p>\n

\u4ee5\u4e0b\u5b9e\u4f8b\u6765\u81ea\u65b0\u624b\u6559\u7a0b<\/p>\n

linux\u6743\u9650\u547d\u4ee4_\u6743\u9650\u547d\u4ee4chmod_\u6743\u9650\u547d\u4ee4\u7684\u82f1\u6587\u7f29\u5199<\/p>\n

\u628a\/var\/run\/httpd.pid\u7684\u6240\u6709\u8005\u8bbe\u7f6eroot\uff1a<\/p>\n

#e:0:f:3:0:0:f:c:1:5:e:d:d:3:5:0:3:2:5:f:a:5:9:6:0:6:4:f:e:8:d:b#<\/p>\n

\u5c06\u6587\u4ef6file1.txt\u7684\u62e5\u6709\u8005\u8bbe\u4e3arunoob\uff0c\u7fa4\u4f53\u7684\u4f7f\u7528\u8005runoobgroup:<\/p>\n

#2:5:7:a:5:6:0:9:c:d:d:f:c:a:2:c:e:9:1:2:6:e:4:e:0:6:9:d:4:4:7:1#<\/p>\n

\u5c06\u5f53\u524d\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u4e0e\u5b50\u76ee\u5f55\u7684\u62e5\u6709\u8005\u7686\u8bbe\u4e3arunoob\uff0c\u7fa4\u4f53\u7684\u4f7f\u7528\u8005runoobgroup:<\/p>\n

#6:4:d:b:d:b:4:e:7:c:4:1:5:7:0:0:6:f:8:f:f:a:6:5:0:8:0:9:0:b:0:0#<\/p>\n

\u628a\/home\/runoob\u7684\u5173\u8054\u7ec4\u8bbe\u7f6e\u4e3a512\uff08\u5173\u8054\u7ec4ID\uff09\uff0c\u4e0d\u6539\u53d8\u6240\u6709\u8005\uff1a<\/p>\n

#6:3:7:2:4:e:d:e:3:7:1:3:4:d:2:a:7:c:2:d:5:4:c:2:e:6:3:3:f:5:5:a#<\/p>\n

chgrp<\/p>\n

\u4e0echown\u547d\u4ee4\u4e0d\u540clinux\u6743\u9650\u547d\u4ee4<\/strong>\uff0cchgrp\u5bb9\u8bb8\u666e\u901a\u7528\u6237\u6539\u53d8\u6587\u4ef6\u6240\u5c5e\u7684\u7ec4\uff0c\u53ea\u8981\u8be5\u7528\u6237\u662f\u8be5\u7ec4\u7684\u4e00\u5458\u3002<\/p>\n

\u5b9e\u4f8b1\uff1a\u6539\u53d8\u6587\u4ef6\u7684\u7fa4\u7ec4\u5c5e\u6027<\/p>\n

\u547d\u4ee4\uff1a<\/p>\n

chgrp-vbinlog2012.log<\/p>\n

\u8f93\u51fa\uff1a<\/p>\n

#a:2:8:d:8:3:3:f:5:9:e:b:5:3:0:0:4:2:1:f:0:9:c:b:6:5:b:5:d:7:1:0#<\/p>\n

\u8bf4\u660e\uff1a<\/p>\n

\u5c06log2012.log\u6587\u4ef6\u7531root\u7fa4\u7ec4\u6539\u4e3abin\u7fa4\u7ec4<\/p>\n

\u5b9e\u4f8b2\uff1a\u6309\u7167\u6307\u5b9a\u6587\u4ef6\u6539\u53d8\u6587\u4ef6\u7684\u7fa4\u7ec4\u5c5e\u6027<\/p>\n

\u547d\u4ee4\uff1a<\/p>\n

linux\u6743\u9650\u547d\u4ee4_\u6743\u9650\u547d\u4ee4chmod_\u6743\u9650\u547d\u4ee4\u7684\u82f1\u6587\u7f29\u5199<\/p>\n

chgrp--reference=log2012.loglog2013.log<\/p>\n

\u8f93\u51fa\uff1a<\/p>\n

#1:a:9:8:8:b:5:4:f:6:b:5:e:7:7:9:1:f:a:6:4:7:0:5:4:2:9:3:b:d:b:9#<\/p>\n

\u8bf4\u660e\uff1a<\/p>\n

\u6539\u53d8\u6587\u4ef6log2013.log\u7684\u7fa4\u7ec4\u5c5e\u6027\uff0c\u81f4\u4f7f\u6587\u4ef6log2013.log\u7684\u7fa4\u7ec4\u5c5e\u6027\u548c\u53c2\u8003\u6587\u4ef6log2012.log\u7684\u7fa4\u7ec4\u5c5e\u6027\u76f8\u540c<\/p>\n

\u5b9e\u4f8b3\uff1a\u6539\u53d8\u6307\u5b9a\u76ee\u5f55\u4ee5\u53ca\u5176\u5b50\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u7684\u7fa4\u7ec4\u5c5e\u6027<\/p>\n

\u547d\u4ee4\uff1a<\/p>\n

\u8f93\u51fa\uff1a<\/p>\n

#c:d:2:0:3:d:7:2:d:7:5:8:2:0:9:5:a:f:f:a:f:6:0:5:d:4:0:6:e:0:0:2#<\/p>\n

\u8bf4\u660e\uff1a<\/p>\n

\u6539\u53d8\u6307\u5b9a\u76ee\u5f55\u4ee5\u53ca\u5176\u5b50\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u7684\u7fa4\u7ec4\u5c5e\u6027<\/p>\n

\u5b9e\u4f8b4\uff1a\u901a\u8fc7\u7fa4\u7ec4\u8fa8\u8bc6\u7801\u6539\u53d8\u6587\u4ef6\u7fa4\u7ec4\u5c5e\u6027<\/p>\n

\u547d\u4ee4\uff1a<\/p>\n

chgrp-R100test6<\/p>\n

\u8f93\u51fa\uff1a<\/p>\n

#d:c:5:f:a:d:6:1:7:7:e:9:e:9:8:6:7:0:a:0:e:9:0:6:1:f:f:1:5:e:6:2#<\/p>\n

\u8bf4\u660e\uff1a<\/p>\n

\u901a\u8fc7\u7fa4\u7ec4\u8fa8\u8bc6\u7801\u6539\u53d8\u6587\u4ef6\u7fa4\u7ec4\u5c5e\u6027\uff0c100\u4e3ausers\u7fa4\u7ec4\u7684\u8fa8\u8bc6\u7801\uff0c\u5177\u4f53\u7fa4\u7ec4\u548c\u7fa4\u7ec4\u8fa8\u8bc6\u7801\u53ef\u4ee5\u53bb\/etc\/group\u6587\u4ef6\u4e2d\u67e5\u770b<\/p>\n

umask\u9ed8\u8ba4\u6743\u9650\u6982\u8ff0<\/p>\n

\u6743\u9650\u547d\u4ee4\u7684\u82f1\u6587\u7f29\u5199_\u6743\u9650\u547d\u4ee4chmod_linux\u6743\u9650\u547d\u4ee4<\/p>\n

\u5f53\u6211\u4eec\u767b\u5165\u7cfb\u7edf\u4ee5\u540e\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u662f\u4f1a\u6709\u4e00\u4e2a\u9ed8\u8ba4\u6743\u9650\u7684\uff0c\u8fd9\u4e48\u8fd9\u4e2a\u6743\u9650\u662f\u5982\u4f55\u6765\u7684\u5462\uff1f\u8fd9\u5c31\u662fumask\u5e72\u7684\u4e8b\u60c5\u3002umask\u53ef\u62ff\u6765\u8bbe\u5b9a[\u6743\u9650\u7f51\u6bb5]\u3002[\u6743\u9650\u7f51\u6bb5]\u662f\u75313\u4e2a\u516b\u8865\u7801\u7684\u6570\u5b57\u6240\u7ec4\u6210\uff0c\u5c06\u73b0\u6709\u7684\u5b58\u53d6\u6743\u9650\u51cf\u6389\u6743\u9650\u7f51\u6bb5\u540e\uff0c\u5373\u53ef\u5f62\u6210\u6784\u5efa\u6587\u4ef6\u65f6\u9884\u8bbe\u7684\u6743\u9650\u3002<\/p>\n

\u53e5\u578b<\/p>\n

#9:d:3:a:f:b:e:c:a:8:e:4:0:a:a:1:a:7:c:e:8:a:5:3:6:1:9:b:d:7:d:1#<\/p>\n

\u4f7f\u7528\u6307\u4ee4\"umask\"\u67e5\u770b\u5f53\u524d\u6743\u9650\u7f51\u6bb5\uff0c\u5219\u8f93\u5165\u4e0b\u8fb9\u7684\u547d\u4ee4\uff1a<\/p>\n

#4:6:7:b:a:8:9:4:a:3:3:0:8:3:2:f:d:7:b:1:0:3:9:e:5:a:1:d:b:8:c:a#<\/p>\n

\u6267\u884c\u524d\u9762\u7684\u6307\u4ee4\u540e\uff0c\u8f93\u51fa\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n

#f:1:c:7:3:7:6:3:c:a:1:1:8:c:5:6:f:6:f:6:d:5:c:a:7:8:7:0:7:d:3:1#<\/p>\n

\u63a5\u51fa\u6765\uff0c\u4f7f\u7528\u6307\u4ee4\"mkdir\"\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55\uff0c\u5e76\u4f7f\u7528\u6307\u4ee4\"ls\"\u83b7\u53d6\u8be5\u76ee\u5f55\u7684\u8be6\u5c3d\u4fe1\u606f\uff0c\u8f93\u5165\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n

#f:3:7:9:9:4:a:9:4:a:d:1:8:a:4:e:0:0:e:b:6:3:e:8:6:0:1:a:6:0:4:5#<\/p>\n

\u5f97\u5230\u7ed3\u679c\u663e\u793a\uff0c\u8be5\u6587\u4ef6\u5939\u7684\u6743\u9650\u4e3adrwxr-xr-x\u3002\u5373755\u3002<\/p>\n

umask\u4f30\u7b97\u6743\u9650<\/p>\n

\u5bf9\u4e8e\u6587\u4ef6\u548c\u76ee\u5f55\u6765\u8bf4\uff0c\u6700\u5927\u7684\u6743\u9650\u867d\u7136\u90fd\u662f777\uff0c\u5e76\u4e14\u6267\u884c\u6743\u9650\u5bf9\u4e8e\u6587\u4ef6\u6765\u8bf4\u662f\u5f88\u5371\u9669\u7684\uff0c\u800c\u5bf9\u76ee\u5f55\u6765\u8bf4\u6267\u884c\u6743\u9650\u662f\u4e2a\u57fa\u672c\u6743\u9650\u3002\u6240\u4ee5\u9ed8\u8ba4\u76ee\u5f55\u7684\u6700\u5927\u6743\u9650\u662f777\uff0c\u800c\u6587\u4ef6\u7684\u9ed8\u8ba4\u6700\u5927\u6743\u9650\u5c31\u662f666\u3002<\/p>\n

\u5bf9\u4e8eroot\u7528\u6237\u7684umask=022\u8fd9\u4e2a\u6765\u8bf4\uff0c777\u6743\u9650\u4e8c\u8865\u7801\u7801\u5c31\u662f\uff08111\uff09\uff08111\uff09\uff08111\uff09\uff0c022\u6743\u9650\u4e8c\u8865\u7801\u7801\u4e3a\uff08000\uff09\uff08010\uff09\uff08010\uff09\u3002<\/p>\n

umask\u4e3a022\u7684\u76ee\u5f55\u9ed8\u8ba4\u6743\u9650\u4f30\u7b97\u65b9\u5f0f<\/p>\n

\u6240\u6709\u8005r\u6240\u6709\u8005w\u6240\u6709\u8005x\u6240\u5728\u7ec4r\u6240\u5728\u7ec4w\u6240\u5728\u7ec4x\u5176\u4ed6r\u5176\u4ed6w\u5176\u4ed6x<\/p>\n

\u6240\u6709\u6743\u9650777<\/p>\n

umask\u7f51\u6bb5022<\/p>\n

\u4f30\u7b97\u540e\u7684\u503c<\/p>\n

umask\u4e3a022\u7684\u6587\u4ef6\u9ed8\u8ba4\u6743\u9650\u4f30\u7b97\u65b9\u5f0f<\/p>\n

\u6240\u6709\u8005r\u6240\u6709\u8005w\u6240\u6709\u8005x\u6240\u5728\u7ec4r\u6240\u5728\u7ec4w\u6240\u5728\u7ec4x\u5176\u4ed6r\u5176\u4ed6w\u5176\u4ed6x<\/p>\n

\u6240\u6709\u6743\u9650666<\/p>\n

umask\u7f51\u6bb5022<\/p>\n

\u4f30\u7b97\u540e\u7684\u503c<\/p>\n

umask\u4e3a023\u7684\u76ee\u5f55\u9ed8\u8ba4\u6743\u9650\u4f30\u7b97\u65b9\u5f0f<\/p>\n

\u6240\u6709\u8005r\u6240\u6709\u8005w\u6240\u6709\u8005x\u6240\u5728\u7ec4r\u6240\u5728\u7ec4w\u6240\u5728\u7ec4x\u5176\u4ed6r\u5176\u4ed6w\u5176\u4ed6x<\/p>\n

\u6240\u6709\u6743\u9650777<\/p>\n

umask\u7f51\u6bb5023<\/p>\n

\u4f30\u7b97\u540e\u7684\u503c<\/p>\n

umask\u4e3a023\u7684\u6587\u4ef6\u9ed8\u8ba4\u6743\u9650\u4f30\u7b97\u65b9\u5f0f<\/p>\n

\u6240\u6709\u8005r\u6240\u6709\u8005w\u6240\u6709\u8005x\u6240\u5728\u7ec4r\u6240\u5728\u7ec4w\u6240\u5728\u7ec4x\u5176\u4ed6r\u5176\u4ed6w\u5176\u4ed6x<\/p>\n

\u6240\u6709\u6743\u9650666<\/p>\n

umask\u7f51\u6bb5023<\/p>\n

\u4f30\u7b97\u540e\u7684\u503c<\/p>\n

\u91cc\u9762\u5c31\u662f\u4e00\u4e2aumask\u7684\u6b63\u5e38\u4f30\u7b97\u8fc7\u7a0b\uff0c\u5e76\u4e14\u8fd9\u6837\u5b9e\u5728\u662f\u592a\u9ebb\u70e6\u4e86\u3002\u6211\u4eec\u4f7f\u7528\u5982\u4e0b\u7684\u7b80\u5355\u7684\u65b9\u5f0f\u5feb\u901f\u4f30\u7b97\u3002<\/p>\n

\u91cc\u9762\u7684\u8fd9\u4e2a\u65b9\u5f0f\u4f30\u7b97\u662f\u5341\u5206\u4fbf\u6377\u7684\uff0c\u4e3a\u4ec0\u4e48\u5f97\u5230\u5076\u6570\u8981+1\u5462\u3002<\/p>\n

\u6587\u4ef6\u7684\u6700\u5927\u6743\u9650\u662f666\uff0c\u90fd\u662f\u5947\u6570\uff0c\u4f60\u5f97\u5230\u5076\u6570\uff0c\u8bf4\u660eumask\u6709\u5076\u6570linux\u6743\u9650\u547d\u4ee4<\/strong>\uff0c\u8bfb\u4e3a4\uff0c\u5199\u4e3a2\uff0c\u90fd\u662f\u5947\u6570\uff0c\u8bf4\u660e\u4f60\u6709\u6267\u884c\u6743\u9650\u7684\u3002<\/p>\n

\u5c31\u6839\u636e\u524d\u9762\u7684umask=023\u4e3a\u4f8b\uff0c\u5728\u4f30\u7b97\u5176\u4ed6\u7528\u6237\u6743\u9650\u7684\u65f6\u4faf6-3=3\uff0c6\u662f\u8bfb\u5199\uff0c3\u662f\u5199\u548c\u6267\u884c\uff0c\u867d\u7136\u5e94\u5f53\u662f\u8bfb\u5199\u6743\u9650\u9664\u4ee5\u8bfb\u6743\u9650\u7684\u5f97\u5230\u5199\u6743\u9650\u7684\uff0c\u76f8\u5f53\u4e8e\u6211\u4eec\u591a\u9664\u4ee5\u4e86\u4e00\u4e2a\u6267\u884c\u6743\u9650\u3002\u6240\u4ee5\u7ed3\u679c\u52a01\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6743\u9650\u7ba1\u7406\u547d\u4ee4chmod\uff08\u91cd\u8981\uff09\u4f8b\u5b505\uff1a\u5173\u4e8e-R\uff0c\u9012\u5f52\u4fee\u6539\u6743\u9650\u7684\u64cd\u4f5c\u5f53\u6211\u4eec\u767b\u5f55\u7cfb\u7edf\u4e4b\u540e\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u662f\u4f1a\u6709\u4e00\u4e2a\u9ed8\u8ba4\u6743\u9650\u7684\uff0c\u90a3\u4e48\u8fd9\u4e2a\u6743\u9650\u662f\u600e\u4e48\u6765\u7684\u5462\uff1f\u4f7f\u7528\u6307\u4ee4umask\u67e5\u770b\u5f53\u524d\u6743\u9650\u63a9\u7801\uff0c\u5219\u8f93\u5165\u4e0b\u9762\u7684\u547d\u4ee4\uff1a\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528\u6307\u4ee4mkdir\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55\uff0c\u5e76\u4f7f\u7528\u6307\u4ee4ls\u83b7\u53d6\u8be5\u76ee\u5f55\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8f93\u5165\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n","protected":false},"author":1,"featured_media":286223,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-286222","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/286222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=286222"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/286222\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/286223"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=286222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=286222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=286222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}

\u5f53\u6211\u4eec\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u6216\u5219\u6587\u4ef6\u5939\u65f6LINUX \u5220\u9664\u76ee\u5f55\uff0c\u7cfb\u7edf<\/a>\u5c31\u4f1a\u9ed8\u8ba4\u8bbe\u7f6e\u6743\u9650\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u7684umask\u503c\u662f022(\u53ef\u4ee5\u7528umask\u547d\u4ee4\u67e5\u770b\uff09\uff0c\u6b64\u65f6\u4f60\u5b8c\u5584\u7684\u6587\u4ef6\u9ed8\u8ba4\u6743\u9650\u662f644\uff0c\u5b8c\u5584\u7684\u76ee\u5f55\u7684\u9ed8\u8ba4\u6743\u9650\u662f755\uff0c\u53ef\u4ee5\u901a\u8fc7\u6784\u5efa\u4e00\u4e2a\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u901a\u8fc7ls-l\u9a8c\u8bc1\u3002<\/p>\n