{"id":18878,"date":"2025-04-22T00:30:16","date_gmt":"2025-04-21T16:30:16","guid":{"rendered":"https:\/\/www.bookcard.net\/wordpress\/?p=18878"},"modified":"2025-04-22T00:30:16","modified_gmt":"2025-04-21T16:30:16","slug":"linux_rwx","status":"publish","type":"post","link":"https:\/\/www.bookcard.net\/wordpress\/linux_rwx\/","title":{"rendered":"Linux\u6587\u6a94\u6b0a\u9650"},"content":{"rendered":"<figure id=\"attachment_18879\" aria-describedby=\"caption-attachment-18879\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2025\/04\/Linux_rwx.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-18879\" src=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2025\/04\/Linux_rwx.jpg\" alt=\"Linux\u6587\u6a94\u6b0a\u9650\" width=\"1280\" height=\"800\" srcset=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2025\/04\/Linux_rwx.jpg 1280w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2025\/04\/Linux_rwx-300x188.jpg 300w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2025\/04\/Linux_rwx-768x480.jpg 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/a><figcaption id=\"caption-attachment-18879\" class=\"wp-caption-text\">Linux\u6587\u6a94\u6b0a\u9650<\/figcaption><\/figure>\n<p>Linux\u6587\u6a94\u6b0a\u9650\u4ee5\u300e-\u300f\u300ed\u300f\u300er\u300f\u300ew\u300f\u300ex\u300f\u6a19\u793a.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"186\">\u6587\u6a94\u6b0a\u9650<\/td>\n<td width=\"181\">\u6b0a\u9650\u7de8\u865f<\/td>\n<td width=\"181\">\u7c21\u4ecb<\/td>\n<\/tr>\n<tr>\n<td width=\"186\">&#8211;<\/td>\n<td width=\"181\">0<\/td>\n<td width=\"181\">\u975e<\/td>\n<\/tr>\n<tr>\n<td width=\"186\">d<\/td>\n<td width=\"181\">&nbsp;<\/td>\n<td width=\"181\">\u76ee\u9304\/\u8cc7\u6599\u593e<\/td>\n<\/tr>\n<tr>\n<td width=\"186\">r<\/td>\n<td width=\"181\">4<\/td>\n<td width=\"181\">\u8b80<\/td>\n<\/tr>\n<tr>\n<td width=\"186\">w<\/td>\n<td width=\"181\">2<\/td>\n<td width=\"181\">\u5beb<\/td>\n<\/tr>\n<tr>\n<td width=\"186\">x<\/td>\n<td width=\"181\">1<\/td>\n<td width=\"181\">\u57f6\u884c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4fc2SHELL\u57f7\u884c\u300els\u00a0 -l\u300f\u547d\u4ee4, \u7d30\u5beb<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">ls \u00a0-l<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5217\u51fa\u7576\u524d\u8cc7\u6599\u593e\u4e0b\u519a\u8fa6\u721b\u300e\u6587\u6a94\u300f\u4edd\u300e\u8cc7\u6599\u593e\u300f\u300e\u8a73\u7d30\u6e05\u55ae\u300f<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">drwxr-xr-x\u00a0 2\u00a0 root\u00a0 root\u00a0 4096\u00a0 Feb\u00a0 3\u00a0 23:09 \u00a0bin<\/td>\n<\/tr>\n<tr>\n<td width=\"553\">drwxr-xr-x\u00a0 3\u00a0 root\u00a0 root\u00a0 2048\u00a0 Feb\u00a0 3\u00a0 23:09\u00a0 boot<\/td>\n<\/tr>\n<tr>\n<td width=\"553\">drwxr-xr-x\u00a0 3\u00a0 root\u00a0 root\u00a0 2760\u00a0 Apr\u00a0 19 \u00a004:08\u00a0 dev<\/td>\n<\/tr>\n<tr>\n<td width=\"553\">\u2026\u2026<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"123\">drwxr-xr-x<\/td>\n<td width=\"431\">\u6587\u6a94\u6b0a\u9650<\/td>\n<\/tr>\n<tr>\n<td width=\"123\">d<\/td>\n<td width=\"431\">\u300ed\u300f\u8868\u793a\u76ee\u9304, \u300e-\u300f\u8868\u793a\u6587\u6a94, \u300el\u300f\u8868\u793a\u5f71\u5c04<\/td>\n<\/tr>\n<tr>\n<td width=\"123\">rwx<\/td>\n<td width=\"431\">\u62e5\u6709\u8005user-\u53ef\u8b80\u53ef\u5beb\u53ef\u57f6\u884c.<\/td>\n<\/tr>\n<tr>\n<td width=\"123\">r-x<\/td>\n<td width=\"431\">\u4edd\u7fa4\u7d44group-\u53ef\u8b80\u53ef\u57f6\u884c.<\/td>\n<\/tr>\n<tr>\n<td width=\"123\">r-x<\/td>\n<td width=\"431\">\u975e\u7fa4\u7d44other-\u53ef\u8b80\u53ef\u57f6\u884c.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"277\">root \u00a0root<\/td>\n<td width=\"277\">\u62e5\u6709\u8005<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">\u9996root<\/td>\n<td width=\"277\">user\u5e33\u6236<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">\u6b21root<\/td>\n<td width=\"277\">group\u7fa4\u7d44<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"277\">&nbsp;<\/td>\n<td width=\"277\">\u6587\u6a94\u5bb9\u91cf<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">4096<\/td>\n<td width=\"277\">4096byte\u53733.3KB<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">2048<\/td>\n<td width=\"277\">2048 byte\u53732KB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"277\">&nbsp;<\/td>\n<td width=\"277\">\u5b7b\u5c58\u4fee\u6539\u65e5\u671f<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">Feb\u00a0 3\u00a0 23:09<\/td>\n<td width=\"277\">2\u67083\u65e523:09<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">Apr\u00a0 19\u00a0 04:08<\/td>\n<td width=\"277\">4\u670819\u65e504:08<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"277\">bin<\/td>\n<td width=\"277\">\u76ee\u9304<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"245\">chown \u00a0param \u00a0user \u00a0\u00a0path<\/td>\n<td width=\"308\">\u6539\u300e\u76ee\u9304\u300f\u300e\u6587\u6a94\u300f\u62e5\u6709\u6b0a<\/td>\n<\/tr>\n<tr>\n<td width=\"245\">user<\/td>\n<td width=\"308\">\u5e33\u6236<\/td>\n<\/tr>\n<tr>\n<td width=\"245\">chown\u00a0 -Rv\u00a0 admin \u00a0.\/*<\/td>\n<td width=\"308\">\u7947root\u5e33\u865f,\u53ef\u4ee5\u4fee\u6539\u5176\u5b83\u5e33\u865f\u6b0a\u9650<\/td>\n<\/tr>\n<tr>\n<td width=\"245\">-R<\/td>\n<td width=\"308\">\u9012\u6b78\u57f7\u884c\u6539\u62e5\u6709\u6b0a\u300e\u76ee\u9304\u300f\u300e\u5b50\u76ee\u9304\u300f\u300e\u6587\u6a94\u300f<\/td>\n<\/tr>\n<tr>\n<td width=\"245\">-v<\/td>\n<td width=\"308\">\u986f\u793a\u57f7\u884c\u904e\u7a0b.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"277\">chmod \u00a0user group other \u00a0filename<\/td>\n<td width=\"277\">\u6539\u300e\u76ee\u9304\u300f\u300e\u6587\u6a94\u300f\u6b0a\u9650<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">user<\/td>\n<td width=\"277\">\u62e5\u6709\u8005\u5e33\u6236-\u6578\u5b57\u6b0a\u9650<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">group<\/td>\n<td width=\"277\">\u4edd\u7fa4\u7d44-\u6578\u5b57\u6b0a\u9650<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">other<\/td>\n<td width=\"277\">\u975e\u7fa4\u7d44-\u6578\u5b57\u6b0a\u9650<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u300euser\u300f\u300egroup\u300f\u300eother\u300f\u4ee5\u6578\u5b57\u4ee3\u8868\u6b0a\u9650<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"277\">r=4<\/td>\n<td width=\"277\">\u53ef\u8b80<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">w=2<\/td>\n<td width=\"277\">\u53ef\u5beb<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">x=1<\/td>\n<td width=\"277\">\u53ef\u57f6\u884c<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">-=0<\/td>\n<td width=\"277\">\u7981<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f8b:\u6578\u5b57\u6b0a\u9650<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"277\">rwx<\/td>\n<td width=\"277\">4+2+1=7\u53ef\u8b80\u53ef\u5beb\u53ef\u57f6\u884c<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">rw-<\/td>\n<td width=\"277\">4+2+0=6\u53ef\u8b80\u53ef\u5beb\u6b0a\u7981\u57f6\u884c<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">r-x<\/td>\n<td width=\"277\">4+0+1=5\u53ef\u8b80\u7981\u5beb\u53ef\u57f6\u884c<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">r&#8211;<\/td>\n<td width=\"277\">4+0+0=4\u53ef\u8b80\u7981\u5beb\u7981\u57f6\u884c<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">&#8211;x<\/td>\n<td width=\"277\">0+0+1=1\u7981\u8b80\u7981\u5beb\u53ef\u57f6\u884c<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">&#8212;<\/td>\n<td width=\"277\">0+0+0=0\u7981\u8b80\u7981\u5beb\u7981\u57f6\u884c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f8b:\u6539\u300e\u6587\u6a94\u300f\u6b0a\u9650\u70ba760<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"277\">Chmod \u00a0760 \u00a0run.log<\/td>\n<td width=\"277\">\u6539\u300e\u6587\u6a94\u300f\u6b0a\u9650<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">7<\/td>\n<td width=\"277\">\u62e5\u6709\u8005user-\u53ef\u8b80\u53ef\u5beb\u53ef\u57f6\u884c<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">6<\/td>\n<td width=\"277\">\u7fa4\u7d44group-\u53ef\u8b80\u53ef\u5beb\u6b0a\u7981\u57f6\u884c<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">0<\/td>\n<td width=\"277\">\u975e\u7fa4\u7d44other-\u7981\u8b80\u7981\u5beb\u7981\u57f6\u884c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"264\">chgrp \u00a0param\u00a0 group \u00a0path<\/td>\n<td width=\"289\">\u6539\u300e\u76ee\u9304\u300f\u300e\u6587\u6a94\u300f\u6240\u5c6c\u7fa4\u7d44<\/td>\n<\/tr>\n<tr>\n<td width=\"264\">group<\/td>\n<td width=\"289\">\u7fa4\u7d44<\/td>\n<\/tr>\n<tr>\n<td width=\"264\">chgrp \u00a0-Rv\u00a0 admin \u00a0.\/*<\/td>\n<td width=\"289\">\u7947root\u5e33\u865f,\u53ef\u4ee5\u4fee\u6539\u5176\u5b83\u7fa4\u7d44\u6b0a\u9650<\/td>\n<\/tr>\n<tr>\n<td width=\"264\">-R<\/td>\n<td width=\"289\">\u9012\u6b78\u57f7\u884c\u300e\u76ee\u9304\u300f\u300e\u5b50\u76ee\u9304\u300f\u300e\u6587\u6a94\u300f\u6539\u7fa4\u7d44<\/td>\n<\/tr>\n<tr>\n<td width=\"264\">-v<\/td>\n<td width=\"289\">\u986f\u793a\u57f7\u884c\u904e\u7a0b.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u6587\u6a94\u6b0a\u9650\u4ee5\u300e-\u300f\u300ed\u300f\u300er\u300f\u300ew\u300f\u300ex\u300f\u6a19\u793a. \u6587\u6a94\u6b0a\u9650 \u6b0a\u9650\u7de8\u865f \u7c21\u4ecb &#8211; 0 \u975e d &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/linux_rwx\/\" class=\"more-link\">\u7e7c\u7e8c\u95b1\u8b80 <span class=\"screen-reader-text\">Linux\u6587\u6a94\u6b0a\u9650<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[283,281],"tags":[284,282],"class_list":["post-18878","post","type-post","status-publish","format-standard","hentry","category-linux","category-openwrt","tag-linux","tag-openwrt","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/18878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/comments?post=18878"}],"version-history":[{"count":1,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/18878\/revisions"}],"predecessor-version":[{"id":18880,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/18878\/revisions\/18880"}],"wp:attachment":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/media?parent=18878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/categories?post=18878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/tags?post=18878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}