{"id":262918,"date":"2023-01-29T06:05:18","date_gmt":"2023-01-28T22:05:18","guid":{"rendered":"https:\/\/lrxjmw.cn\/kdkxkzxrkdbk.html"},"modified":"2023-01-29T06:05:18","modified_gmt":"2023-01-28T22:05:18","slug":"kdkxkzxrkdbk","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/kdkxkzxrkdbk.html","title":{"rendered":"\u3010\u3011\u53ef\u8bfb\u53ef\u5199\u53ef\u6267\u884cr-\u53ef\u8bfb\u4e0d\u53ef"},"content":{"rendered":"
cd code \u8fdb\u5165code\u76ee\u5f55\uff0cmkdir test \u521b\u5efatest\u76ee\u5f55\uff0c\u770b\u4ee3\u7801\u6846\u90fd\u8f93\u7b2c\u4e09\u884cd(\u76ee\u5f55\u6587\u4ef6\u6807\u8bc6\u7b26) rwx(user\u53ef\u8bfb\u53ef\u5199\u53ef\u6267\u884c) rwx(group\u53ef\u8bfb\u53ef\u5199\u53ef\u6267\u884c) r-x(other\u53ef\u8bfb\u4e0d\u53ef\u5199\u53ef\u6267\u884c) . r-\u53ef\u8bfb\uff0cw-\u53ef\u5199\uff0cx-\u53ef\u6267\u884c linux\u6743\u9650\u7ba1\u7406\uff1a\u6743\u9650\u5206\u4e3a\u2014r(\u53ef\u8bfb)\uff0cw(\u53ef\u5199)linux c\u4fee\u6539\u6587\u4ef6<\/strong>\uff0c(\u53ef\u6267\u884c) \u4f7f\u7528\u8005\u5206\u4e3a\u2014user,group,other<\/p>\n chmod 700 test\u4fee\u6539test\u6743\u9650 7(uer-111(rwx)),0(group-000(---)),0(other-000(---))<\/p>\n <\/p>\n touch\u547d\u4ee4<\/a>\u6709\u4e24\u4e2a\u529f\u80fd\uff1a\u4e00\u662f\u7528\u4e8e\u628a\u5df2\u5b58\u5728\u6587\u4ef6\u7684\u65f6\u95f4\u6807\u7b7e\u66f4\u65b0\u4e3a\u7cfb\u7edf<\/a>\u5f53\u524d\u7684\u65f6\u95f4\uff08\u9ed8\u8ba4\u65b9\u5f0f\uff09\uff0c\u5b83\u4eec\u7684\u6570\u636e\u5c06\u539f\u5c01\u4e0d\u52a8\u5730\u4fdd\u7559\u4e0b\u6765\uff1b\u4e8c\u662f\u7528\u6765\u521b\u5efa\u65b0\u7684\u7a7a\u6587\u4ef6<\/p>\n \u5728test\u76ee\u5f55\u4e0btouch t-file\u521b\u5efat-file(rw-rw-r--)\u6587\u4ef6<\/p>\n mv\u547d\u4ee4\u7528\u6765\u5bf9\u6587\u4ef6\u6216\u76ee\u5f55\u91cd\u65b0\u547d\u540d\uff0c\u6216\u8005\u5c06\u6587\u4ef6\u4ece\u4e00\u4e2a\u76ee\u5f55\u79fb\u5230\u53e6\u4e00\u4e2a\u76ee\u5f55\u4e2d\u3002source\u8868\u793a\u6e90\u6587\u4ef6\u6216\u76ee\u5f55\uff0ctarget\u8868\u793a\u76ee\u6807\u6587\u4ef6\u6216\u76ee\u5f55\u3002\u5982\u679c\u5c06\u4e00\u4e2a\u6587\u4ef6\u79fb\u5230\u4e00\u4e2a\u5df2\u7ecf\u5b58\u5728\u7684\u76ee\u6807\u6587\u4ef6\u4e2d\uff0c\u5219\u76ee\u6807\u6587\u4ef6\u7684\u5185\u5bb9\u5c06\u88ab\u8986\u76d6<\/p>\n mv t-file t-myfile \u5c06\u6587\u4ef6t-file\u540d\u5b57\u4fee\u6539\u4e3at-myfile<\/p>\n chmod 421 t-myfile \u6587\u4ef6(t-myfile(r---w---x))\u6bd4\u8f83\u4e0e\u4e0a\u9762\u4e2d\u6587\u4ef6\u56fe\u7247(r--)\u6709\u9501<\/p>\n echo \"holle friend\" > t-myfile \u6211\u4eec\u60f3\u7ed9\u6587\u4ef6\u91cc\u9762\u5199\u5165holle friend ,\u4f46\u662f\u4e0a\u9762\u6211\u4eec\u5c06\u6587\u4ef6user\u6743\u9650\u6539\u4e3a(r--)\u53ea\u8bfb\uff0c\u6240\u4ee5\u5728user\u4e0b\u65e0\u6cd5\u5199\u5165\uff0c\u6743\u9650\u4e0d\u591f\uff0csu root \u8fdb\u5165\u8d85\u7ea7\u7528\u6237\u6743\u9650\u53ef\u4ee5\u5199\u5165\u5185\u5bb9\u5230my-file \uff0c cat t-myfile\u8bfb\u51fa\u6587\u4ef6\u5185\u5bb9<\/p>\n chmod 651 t-myfile (rw-r-x--x)\u5bf9\u4e8euser\u6743\u9650\u53d8\u4e3a\u53ef\u8bfb\u53ef\u5199\uff0c\u6bd4\u8f83\u4e0e\u4e0a\u56fe\u7684\u6587\u4ef6\u56fe\u7247<\/p>\n \u5728\u6587\u4ef6t-myfile\u4e2d\u5199\u5165holle friend 0-100<\/p>\n stat\u547d\u4ee4\u7528\u4e8e\u663e\u793a\u6587\u4ef6\u7684\u72b6\u6001\u4fe1\u606f\u3002stat\u547d\u4ee4\u7684\u8f93\u51fa\u4fe1\u606f\u6bd4ls\u547d\u4ee4\u7684\u8f93\u51fa\u4fe1\u606f\u8981\u66f4\u8be6\u7ec6<\/p>\n <\/p>\n Access:\u6587\u4ef6\u6700\u8fd1\u8bbf\u95ee\u65f6\u95f4<\/p>\n Modify:\u6587\u4ef6\u7684\u5185\u5bb9\u6700\u8fd1\u4fee\u6539\u65f6\u95f4<\/p>\n Change:\u6587\u4ef6\u5c5e\u6027\u6700\u8fd1\u4fee\u6539\u65f6\u95f4<\/p>\n touch\u547d\u4ee4\u6709\u4e24\u4e2a\u529f\u80fd\uff1a\u4e00\u662f\u7528\u4e8e\u628a\u5df2\u5b58\u5728\u6587\u4ef6\u7684\u65f6\u95f4\u6807\u7b7e\u66f4\u65b0\u4e3a\u7cfb\u7edf\u5f53\u524d\u7684\u65f6\u95f4\uff08\u9ed8\u8ba4\u65b9\u5f0f\uff09\uff0c\u5b83\u4eec\u7684\u6570\u636e\u5c06\u539f\u5c01\u4e0d\u52a8\u5730\u4fdd\u7559\u4e0b\u6765\uff1b\u4e8c\u662f\u7528\u6765\u521b\u5efa\u65b0\u7684\u7a7a\u6587\u4ef6\u3002<\/p>\n -a\uff1a\u6216--time=atime\u6216--time=access\u6216--time=use \u53ea\u66f4\u6539\u5b58\u53d6\u65f6\u95f4\uff1b<\/p>\n -c\uff1a\u6216--no-create \u4e0d\u5efa\u7acb\u4efb\u4f55\u6587\u4ef6\uff1b<\/p>\n -d\uff1a \u4f7f\u7528\u6307\u5b9a\u7684\u65e5\u671f\u65f6\u95f4\uff0c\u800c\u975e\u73b0\u5728\u7684\u65f6\u95f4\uff1b<\/p>\n -f\uff1a\u6b64\u53c2\u6570\u5c06\u5ffd\u7565\u4e0d\u4e88\u5904\u7406linux\u5165\u95e8\uff0c\u4ec5\u8d1f\u8d23\u89e3\u51b3BSD\u7248\u672ctouch\u6307\u4ee4\u7684\u517c\u5bb9\u6027\u95ee\u9898\uff1b<\/p>\n -m\uff1a\u6216--time=mtime\u6216--time=modify \u53ea\u66f4\u8be5\u53d8\u52a8\u65f6\u95f4\uff1b<\/p>\n -r\uff1a \u628a\u6307\u5b9a\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u65e5\u671f\u65f6\u95f4linux c\u4fee\u6539\u6587\u4ef6<\/strong>\uff0c\u7edf\u7edf\u8bbe\u6210\u548c\u53c2\u8003\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u65e5\u671f\u65f6\u95f4\u76f8\u540c\uff1b<\/p>\n -t\uff1a \u4f7f\u7528\u6307\u5b9a\u7684\u65e5\u671f\u65f6\u95f4redhat linux \u4e0b\u8f7d\uff0c\u800c\u975e\u73b0\u5728\u7684\u65f6\u95f4\uff1b<\/p>\n","protected":false},"excerpt":{"rendered":" mv\u547d\u4ee4\u7528\u6765\u5bf9\u6587\u4ef6\u6216\u76ee\u5f55\u91cd\u65b0\u547d\u540d\uff0c\u6216\u8005\u5c06\u6587\u4ef6\u4ece\u4e00\u4e2a\u76ee\u5f55\u79fb\u5230\u53e6\u4e00\u4e2a\u76ee\u5f55\u4e2d\u3002\u5c06\u6587\u4ef6t-file\u540d\u5b57\u4fee\u6539\u4e3at-myfileModify:\u6587\u4ef6\u7684\u5185\u5bb9\u6700\u8fd1\u4fee\u6539\u65f6\u95f4Change:\u6587\u4ef6\u5c5e\u6027\u6700\u8fd1\u4fee\u6539\u65f6\u95f4\u628a\u6307\u5b9a\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u65e5\u671f\u65f6\u95f4\uff0c\u7edf\u7edf\u8bbe\u6210\u548c\u53c2\u8003\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u65e5\u671f\u65f6\u95f4\u76f8\u540c\uff1b<\/p>\n","protected":false},"author":1,"featured_media":262919,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-262918","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\/262918","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=262918"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/262918\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/262919"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=262918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=262918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=262918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}