{"id":6050,"date":"2019-12-25T16:59:28","date_gmt":"2019-12-25T08:59:28","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6050"},"modified":"2019-12-25T16:59:28","modified_gmt":"2019-12-25T08:59:28","slug":"visudo","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/visudo","title":{"rendered":"visudo\u547d\u4ee4 – \u7f16\u8f91\/etc\/sudoers\u6587\u4ef6"},"content":{"rendered":"\n
\u4f7f\u7528visudo\u547d\u4ee4\u53ef\u4ee5\u6253\u5f00\/etc\/sudoers\u6587\u4ef6\u8fdb\u884c\u7f16\u8f91\u8bbe\u7f6esudo<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>visudo [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u4f7f\u7528visudo\u547d\u4ee4\u7f16\u8f91\/etc\/sudoers\u6587\u4ef6\uff1a<\/p>\n\n\n\n \u68c0\u67e5\/etc\/sudoers\u6587\u4ef6\u7684\u8bed\u6cd5\u9519\u8bef\u3001\u6240\u6709\u8005\u548c\u6a21\u5f0f\uff1a<\/p>\n\n\n\n \u4f7f\u7528visudo\u547d\u4ee4\u53ef\u4ee5\u6253\u5f00\/etc\/sudoers\u6587\u4ef6\u8fdb\u884c\u7f16\u8f91\u8bbe\u7f6esudo \u8bed\u6cd5\u683c\u5f0f\uff1avisudo [\u53c2\u6570] […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6050"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6050"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6050\/revisions"}],"predecessor-version":[{"id":6086,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6050\/revisions\/6086"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-c<\/td> \u542f\u7528check-only\u6a21\u5f0f<\/td><\/tr> -q<\/td> \u542f\u7528\u5b89\u9759\u6a21\u5f0f\uff0c\u6b64\u6a21\u5f0f\u4e0b\u4e0d\u663e\u793a\u9519\u8bef\u4fe1\u606f<\/td><\/tr> -s<\/td> \u542f\u7528\u4e25\u683c\u68c0\u67e5sudoers\u6587\u4ef6<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# visudo<\/pre>\n\n\n\n
[root@linuxcool ~]# visudo -c<\/pre>\n","protected":false},"excerpt":{"rendered":"