{"id":20825,"date":"2025-04-19T03:46:43","date_gmt":"2025-04-18T19:46:43","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/20825.html"},"modified":"2025-04-19T03:46:43","modified_gmt":"2025-04-18T19:46:43","slug":"linux%e8%bf%9c%e7%a8%8broot%e7%99%bb%e5%bd%95%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%8a%a5%e6%9d%83%e9%99%90%e4%b8%8d%e8%b6%b3permission-denied%ef%bc%8c%e4%bb%80%e4%b9%88%e5%8e%9f%e5%9b%a0%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/20825.html","title":{"rendered":"linux\u8fdc\u7a0broot\u767b\u5f55\u670d\u52a1\u5668\u62a5\u6743\u9650\u4e0d\u8db3(permission denied)\uff0c\u4ec0\u4e48\u539f\u56e0\uff1f"},"content":{"rendered":"<\/p>\n<p>\u5728 Linux \u7cfb\u7edf\u4e2d&#xff0c;\u5982\u679c\u4f60\u9047\u5230\u8fdc\u7a0b\u767b\u5f55\u65f6\u4f7f\u7528 root \u7528\u6237\u62a5\u6743\u9650\u4e0d\u8db3\u7684\u9519\u8bef&#xff0c;\u800c\u666e\u901a\u7528\u6237\u53ef\u4ee5\u6b63\u5e38\u767b\u5f55&#xff0c;\u8fd9\u901a\u5e38\u662f\u7531\u4e8e\u7cfb\u7edf\u914d\u7f6e\u6216\u5b89\u5168\u7b56\u7565\u9650\u5236\u4e86 root \u7528\u6237\u7684\u8fdc\u7a0b\u767b\u5f55\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u539f\u56e0\u548c\u89e3\u51b3\u65b9\u6cd5&#xff1a;<\/p>\n<h2>\u4e00\u3001SSH \u914d\u7f6e\u6587\u4ef6\u9650\u5236\u00a0<\/h2>\n<p>SSH \u670d\u52a1\u5668\u914d\u7f6e\u6587\u4ef6 \/etc\/ssh\/sshd_config \u4e2d\u53ef\u80fd\u6709\u8bbe\u7f6e\u7981\u6b62 root \u7528\u6237\u901a\u8fc7 SSH \u767b\u5f55\u3002<\/p>\n<p>\u68c0\u67e5 sshd_config \u6587\u4ef6<\/p>\n<p>\u6253\u5f00 \/etc\/ssh\/sshd_config \u6587\u4ef6&#xff0c;\u67e5\u627e\u4ee5\u4e0b\u914d\u7f6e\u9879&#xff1a;<\/p>\n<p>vim \/etc\/ssh\/sshd_config <\/p>\n<h4>1.1 PermitRootLogin&#xff1a;\u63a7\u5236\u662f\u5426\u5141\u8bb8 root \u7528\u6237\u901a\u8fc7 SSH \u767b\u5f55\u3002<\/h4>\n<ul>\n<li>\u5982\u679c\u8bbe\u7f6e\u4e3a no \u6216 prohibit-password&#xff0c;\u5219\u4e0d\u5141\u8bb8 root \u7528\u6237\u901a\u8fc7\u5bc6\u7801\u767b\u5f55\u3002<\/li>\n<li>\u5982\u679c\u8bbe\u7f6e\u4e3a without-password&#xff0c;\u5219\u53ea\u5141\u8bb8 root \u7528\u6237\u901a\u8fc7\u516c\u94a5\u8ba4\u8bc1\u767b\u5f55\u3002<\/li>\n<li>\u5982\u679c\u8bbe\u7f6e\u4e3a yes&#xff0c;\u5219\u5141\u8bb8 root \u7528\u6237\u901a\u8fc7\u5bc6\u7801\u767b\u5f55\u3002<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>PermitRootLogin no<br \/>\n\u4fee\u6539\u4e3a&#xff1a;PermitRootLogin yes <\/p>\n<h4><\/h4>\n<h4>1.2 PasswordAuthentication&#xff1a;\u63a7\u5236\u662f\u5426\u5141\u8bb8\u5bc6\u7801\u8ba4\u8bc1\u3002<\/h4>\n<ul>\n<li>\u5982\u679c\u8bbe\u7f6e\u4e3a no&#xff0c;\u5219\u4e0d\u5141\u8bb8\u4efb\u4f55\u7528\u6237\u901a\u8fc7\u5bc6\u7801\u767b\u5f55\u3002<\/li>\n<li>\u5982\u679c\u8bbe\u7f6e\u4e3a yes&#xff0c;\u5219\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u5bc6\u7801\u767b\u5f55\u3002<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>PasswordAuthentication no<br \/>\n\u4fee\u6539\u4e3a&#xff1a;PasswordAuthentication yes <\/p>\n<h4>1.3 \u91cd\u542f SSH \u670d\u52a1<\/h4>\n<p>\u4fee\u6539\u5b8c\u914d\u7f6e\u6587\u4ef6\u540e&#xff0c;\u91cd\u542f SSH \u670d\u52a1\u4ee5\u5e94\u7528\u66f4\u6539&#xff1a;<\/p>\n<p>systemctl restart sshd <\/p>\n<h2>\u4e8c\u3001. PAM \u914d\u7f6e\u6587\u4ef6\u9650\u5236<\/h2>\n<p>PAM&#xff08;Pluggable Authentication Modules&#xff09;\u914d\u7f6e\u6587\u4ef6\u4e5f\u53ef\u80fd\u9650\u5236 root \u7528\u6237\u7684\u8fdc\u7a0b\u767b\u5f55\u3002<\/p>\n<\/p>\n<h4>2.1 \u68c0\u67e5 PAM \u914d\u7f6e\u6587\u4ef6<\/h4>\n<p>\u6253\u5f00 \/etc\/pam.d\/sshd \u6587\u4ef6&#xff0c;\u67e5\u627e\u662f\u5426\u6709\u9488\u5bf9 root \u7528\u6237\u7684\u9650\u5236&#xff1a;<\/p>\n<p>vim \/etc\/pam.d\/sshd <\/p>\n<p>\u00a0<\/p>\n<h4>2.2 \u67e5\u627e\u7c7b\u4f3c\u4ee5\u4e0b\u7684\u884c&#xff1a;<\/h4>\n<p>auth required pam_listfile.so item&#061;user sense&#061;deny file&#061;\/etc\/ssh\/deniedusers onerr&#061;succeed <\/p>\n<p>\u8fd9\u4e2a\u914d\u7f6e\u4f1a\u62d2\u7edd deniedusers \u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u7528\u6237\u767b\u5f55\u3002\u786e\u4fdd root \u7528\u6237\u4e0d\u5728\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u3002<\/p>\n<\/p>\n<h2>\u4e09\u3001 SELinux \u9650\u5236<\/h2>\n<p>\u5982\u679c\u7cfb\u7edf\u542f\u7528\u4e86 SELinux&#xff0c;\u53ef\u80fd\u4f1a\u6709\u989d\u5916\u7684\u5b89\u5168\u7b56\u7565\u9650\u5236 root \u7528\u6237\u7684\u8fdc\u7a0b\u767b\u5f55\u3002<\/p>\n<h4><\/h4>\n<h4>3.1 \u68c0\u67e5 SELinux \u72b6\u6001<\/h4>\n<p>\u67e5\u770b SELinux \u662f\u5426\u542f\u7528&#xff1a;<\/p>\n<p>sestatus<\/p>\n<p>\u5982\u679c SELinux \u662f\u542f\u7528\u72b6\u6001&#xff0c;\u68c0\u67e5\u76f8\u5173\u7684 SELinux \u7b56\u7565&#xff1a;<\/p>\n<p>grep ssh \/var\/log\/audit\/audit.log | audit2allow -m mypol <\/p>\n<p>\u00a0<\/p>\n<p>3.2 \u4e34\u65f6\u5c06SELinux \u8bbe\u7f6e\u4e3a\u5bbd\u677e\u6a21\u5f0f\u8fdb\u884c\u6d4b\u8bd5&#xff1a;<\/p>\n<p>setenforce 0 <\/p>\n<p>\u00a0<\/p>\n<h2>\u56db\u3001 \u5176\u4ed6\u5b89\u5168\u5de5\u5177\u00a0<\/h2>\n<p>\u67d0\u4e9b\u5b89\u5168\u5de5\u5177&#xff08;\u5982 Fail2Ban\u3001AppArmor \u7b49&#xff09;\u4e5f\u53ef\u80fd\u9650\u5236 root \u7528\u6237\u7684\u8fdc\u7a0b\u767b\u5f55\u3002\u68c0\u67e5\u8fd9\u4e9b\u5de5\u5177\u7684\u914d\u7f6e\u6587\u4ef6&#xff0c;\u786e\u4fdd\u6ca1\u6709\u5bf9 root \u7528\u6237\u7684\u9650\u5236\u3002<\/p>\n<\/p>\n<h2>\u4e94\u3001 \u65e5\u5fd7\u6587\u4ef6<\/h2>\n<p>\u67e5\u770b SSH \u670d\u52a1\u5668\u7684\u65e5\u5fd7\u6587\u4ef6&#xff0c;\u83b7\u53d6\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\u3002\u65e5\u5fd7\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e \/var\/log\/ \u76ee\u5f55\u4e0b&#xff1a;<\/p>\n<p>tail -n 50 \/var\/log\/secure <\/p>\n<p>\u65e5\u5fd7\u6587\u4ef6\u4e2d\u7684\u4fe1\u606f\u53ef\u4ee5\u5e2e\u52a9\u4f60\u786e\u5b9a\u5177\u4f53\u7684\u95ee\u9898\u6240\u5728\u3002<\/p>\n<\/p>\n<h2>\u516d\u3001\u603b\u7ed3<\/h2>\n<li>\u68c0\u67e5 \/etc\/ssh\/sshd_config \u6587\u4ef6&#xff0c;\u786e\u4fdd PermitRootLogin \u548c PasswordAuthentication \u8bbe\u7f6e\u6b63\u786e\u3002<\/li>\n<li>\u68c0\u67e5 PAM \u914d\u7f6e\u6587\u4ef6&#xff0c;\u786e\u4fdd\u6ca1\u6709\u9488\u5bf9 root \u7528\u6237\u7684\u9650\u5236\u3002<\/li>\n<li>\u68c0\u67e5 SELinux \u72b6\u6001&#xff0c;\u786e\u4fdd SELinux \u7b56\u7565\u6ca1\u6709\u9650\u5236 root \u7528\u6237\u7684\u8fdc\u7a0b\u767b\u5f55\u3002<\/li>\n<li>\u68c0\u67e5\u5176\u4ed6\u5b89\u5168\u5de5\u5177&#xff0c;\u786e\u4fdd\u5b83\u4eec\u6ca1\u6709\u5bf9 root \u7528\u6237\u7684\u9650\u5236\u3002<\/li>\n<li>\u67e5\u770b\u65e5\u5fd7\u6587\u4ef6&#xff0c;\u83b7\u53d6\u66f4\u591a\u8be6\u7ec6\u7684\u9519\u8bef\u4fe1\u606f\u3002<\/li>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4&#xff0c;\u4f60\u5e94\u8be5\u80fd\u591f\u627e\u5230\u5e76\u89e3\u51b3 root \u7528\u6237\u65e0\u6cd5\u8fdc\u7a0b\u767b\u5f55\u7684\u95ee\u9898\u3002\u5982\u679c\u95ee\u9898\u4ecd\u7136\u5b58\u5728&#xff0c;\u8bf7\u63d0\u4f9b\u66f4\u591a\u8be6\u7ec6\u7684\u9519\u8bef\u4fe1\u606f\u548c\u914d\u7f6e\u6587\u4ef6\u5185\u5bb9&#xff0c;\u4ee5\u4fbf\u8fdb\u4e00\u6b65\u8bca\u65ad\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb3.1k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u68c0\u67e5 \/etc\/ssh\/sshd_config \u6587\u4ef6\uff0c\u786e\u4fdd PermitRootLogin \u548c PasswordAuthentication \u8bbe\u7f6e\u6b63\u786e\u3002\u68c0\u67e5 PAM \u914d\u7f6e\u6587\u4ef6\uff0c\u786e\u4fdd\u6ca1\u6709\u9488\u5bf9 root \u7528\u6237\u7684\u9650\u5236\u3002\u68c0\u67e5 SELinux \u72b6\u6001\uff0c\u786e\u4fdd SELinux \u7b56\u7565\u6ca1\u6709\u9650\u5236 root \u7528\u6237\u7684\u8fdc\u7a0b\u767b\u5f55\u3002\u68c0\u67e5\u5176\u4ed6\u5b89\u5168\u5de5\u5177\uff0c\u786e\u4fdd\u5b83\u4eec\u6ca1\u6709\u5bf9 root \u7528\u6237\u7684\u9650\u5236\u3002\u67e5\u770b\u65e5\u5fd7\u6587\u4ef6\uff0c\u83b7\u53d6\u66f4\u591a\u8be6\u7ec6\u7684\u9519\u8bef\u4fe1\u606f\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u5e94\u8be5\u80fd\u591f\u627e\u5230\u5e76\u89e3\u51b3 root \u7528\u6237\u65e0\u6cd5\u8fdc\u7a0b\u767b\u5f55\u7684\u95ee\u9898\u3002_root\u767b\u5f55permission denied<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,16,43,44],"topic":[],"class_list":["post-20825","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-16","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>linux\u8fdc\u7a0broot\u767b\u5f55\u670d\u52a1\u5668\u62a5\u6743\u9650\u4e0d\u8db3(permission denied)\uff0c\u4ec0\u4e48\u539f\u56e0\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/20825.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"linux\u8fdc\u7a0broot\u767b\u5f55\u670d\u52a1\u5668\u62a5\u6743\u9650\u4e0d\u8db3(permission denied)\uff0c\u4ec0\u4e48\u539f\u56e0\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb3.1k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u68c0\u67e5 \/etc\/ssh\/sshd_config \u6587\u4ef6\uff0c\u786e\u4fdd PermitRootLogin \u548c PasswordAuthentication \u8bbe\u7f6e\u6b63\u786e\u3002\u68c0\u67e5 PAM \u914d\u7f6e\u6587\u4ef6\uff0c\u786e\u4fdd\u6ca1\u6709\u9488\u5bf9 root \u7528\u6237\u7684\u9650\u5236\u3002\u68c0\u67e5 SELinux \u72b6\u6001\uff0c\u786e\u4fdd SELinux \u7b56\u7565\u6ca1\u6709\u9650\u5236 root \u7528\u6237\u7684\u8fdc\u7a0b\u767b\u5f55\u3002\u68c0\u67e5\u5176\u4ed6\u5b89\u5168\u5de5\u5177\uff0c\u786e\u4fdd\u5b83\u4eec\u6ca1\u6709\u5bf9 root \u7528\u6237\u7684\u9650\u5236\u3002\u67e5\u770b\u65e5\u5fd7\u6587\u4ef6\uff0c\u83b7\u53d6\u66f4\u591a\u8be6\u7ec6\u7684\u9519\u8bef\u4fe1\u606f\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u5e94\u8be5\u80fd\u591f\u627e\u5230\u5e76\u89e3\u51b3 root \u7528\u6237\u65e0\u6cd5\u8fdc\u7a0b\u767b\u5f55\u7684\u95ee\u9898\u3002_root\u767b\u5f55permission denied\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/20825.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T19:46:43+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/20825.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/20825.html\",\"name\":\"linux\u8fdc\u7a0broot\u767b\u5f55\u670d\u52a1\u5668\u62a5\u6743\u9650\u4e0d\u8db3(permission denied)\uff0c\u4ec0\u4e48\u539f\u56e0\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T19:46:43+00:00\",\"dateModified\":\"2025-04-18T19:46:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/20825.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/20825.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/20825.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"linux\u8fdc\u7a0broot\u767b\u5f55\u670d\u52a1\u5668\u62a5\u6743\u9650\u4e0d\u8db3(permission denied)\uff0c\u4ec0\u4e48\u539f\u56e0\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"linux\u8fdc\u7a0broot\u767b\u5f55\u670d\u52a1\u5668\u62a5\u6743\u9650\u4e0d\u8db3(permission denied)\uff0c\u4ec0\u4e48\u539f\u56e0\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/20825.html","og_locale":"zh_CN","og_type":"article","og_title":"linux\u8fdc\u7a0broot\u767b\u5f55\u670d\u52a1\u5668\u62a5\u6743\u9650\u4e0d\u8db3(permission denied)\uff0c\u4ec0\u4e48\u539f\u56e0\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb3.1k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\u68c0\u67e5 \/etc\/ssh\/sshd_config \u6587\u4ef6\uff0c\u786e\u4fdd PermitRootLogin \u548c PasswordAuthentication \u8bbe\u7f6e\u6b63\u786e\u3002\u68c0\u67e5 PAM \u914d\u7f6e\u6587\u4ef6\uff0c\u786e\u4fdd\u6ca1\u6709\u9488\u5bf9 root \u7528\u6237\u7684\u9650\u5236\u3002\u68c0\u67e5 SELinux \u72b6\u6001\uff0c\u786e\u4fdd SELinux \u7b56\u7565\u6ca1\u6709\u9650\u5236 root \u7528\u6237\u7684\u8fdc\u7a0b\u767b\u5f55\u3002\u68c0\u67e5\u5176\u4ed6\u5b89\u5168\u5de5\u5177\uff0c\u786e\u4fdd\u5b83\u4eec\u6ca1\u6709\u5bf9 root \u7528\u6237\u7684\u9650\u5236\u3002\u67e5\u770b\u65e5\u5fd7\u6587\u4ef6\uff0c\u83b7\u53d6\u66f4\u591a\u8be6\u7ec6\u7684\u9519\u8bef\u4fe1\u606f\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u5e94\u8be5\u80fd\u591f\u627e\u5230\u5e76\u89e3\u51b3 root \u7528\u6237\u65e0\u6cd5\u8fdc\u7a0b\u767b\u5f55\u7684\u95ee\u9898\u3002_root\u767b\u5f55permission denied","og_url":"https:\/\/www.wsisp.com\/helps\/20825.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T19:46:43+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/20825.html","url":"https:\/\/www.wsisp.com\/helps\/20825.html","name":"linux\u8fdc\u7a0broot\u767b\u5f55\u670d\u52a1\u5668\u62a5\u6743\u9650\u4e0d\u8db3(permission denied)\uff0c\u4ec0\u4e48\u539f\u56e0\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T19:46:43+00:00","dateModified":"2025-04-18T19:46:43+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/20825.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/20825.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/20825.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"linux\u8fdc\u7a0broot\u767b\u5f55\u670d\u52a1\u5668\u62a5\u6743\u9650\u4e0d\u8db3(permission denied)\uff0c\u4ec0\u4e48\u539f\u56e0\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/20825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=20825"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/20825\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=20825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=20825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=20825"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=20825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}