{"id":17225,"date":"2024-06-24T14:55:59","date_gmt":"2024-06-24T06:55:59","guid":{"rendered":"https:\/\/blog.ywdevops.cn\/?p=17225"},"modified":"2024-06-24T14:56:21","modified_gmt":"2024-06-24T06:56:21","slug":"17225","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2024\/06\/24\/17225\/","title":{"rendered":"ubuntu\u8bbe\u7f6eroot\u7528\u6237\u767b\u5f55\u684c\u9762"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">ubuntu\u684c\u9762\u7248\u7cfb\u7edf\u540e\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u53ea\u6709\u666e\u901a\u7528\u6237\u624d\u53ef\u4ee5\u767b\u5f55\u684c\u9762\uff0croot\u7528\u6237\u662f\u4e0d\u53ef\u4ee5\u767b\u5f55\u684c\u9762\u7684\uff0c\u56e0\u4e3aroot\u6743\u9650\u8fc7\u5927\uff0c\u4f1a\u9020\u6210\u4e0d\u5b89\u5168\uff0c\u5982\u679c\u76f4\u63a5\u4f7f\u7528root\u767b\u5f55\uff0c\u4f1a\u63d0\u793a\u9519\u8bef\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"243\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/7-2.jpg\" alt=\"\" class=\"wp-image-17226\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/7-2.jpg 691w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/7-2-300x105.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/7-2-600x211.jpg 600w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u8981\u60f3\u4f7f\u7528root\u7528\u6237\u767b\u5f55\uff0c\u9700\u8981\u505a\u5982\u4e0b\u8bbe\u7f6e\uff0c\u672c\u6559\u7a0b\u4ee5ubuntu 24.04LTS\u4e3a\u4f8b\u5b50<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"187\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/1-3.jpg\" alt=\"\" class=\"wp-image-17227\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/1-3.jpg 691w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/1-3-300x81.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/1-3-600x162.jpg 600w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ubuntu\u4f7f\u7528LightDM\u4f5c\u4e3a\u9ed8\u8ba4\u7684\u663e\u793a\u7ba1\u7406\u5668\uff0c\u4e3a\u4e86\u5141\u8bb8root\u7528\u6237\u901a\u8fc7\u56fe\u5f62\u754c\u9762\u767b\u5f55\uff0c\u4f60\u9700\u8981\u7f16\u8f91\u76f8\u5173\u7684LightDM\u914d\u7f6e\u6587\u4ef6<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u6253\u5f00\u7ec8\u7aef\uff0c\u5207\u6362\u5230root\u7528\u6237\uff0c\u7f16\u8f91\u5982\u4e0b\u914d\u7f6e\u6587\u4ef6\uff0c\u6dfb\u52a0\u56fe\u4e2d\u6240\u793a\u5185\u5bb9\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/usr\/share\/lightdm\/lightdm.conf.d\/50-ubuntu.conf   #\u5982\u4e0d\u5b58\u5728\u5c31\u65b0\u5efa<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"123\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/2-4.jpg\" alt=\"\" class=\"wp-image-17229\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/2-4.jpg 692w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/2-4-300x53.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/2-4-600x107.jpg 600w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e00\u884c\u544a\u8bc9LightDM\u5728\u767b\u5f55\u754c\u9762\u4e0a\u663e\u793a\u4e00\u4e2a\u201c\u5176\u4ed6\u7528\u6237\u201d\u7684\u9009\u9879\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u9009\u9879\u624b\u52a8\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\u767b\u5f55\uff0c\u5305\u62ecroot\u7528\u6237<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u7f16\u8f91PAM\u914d\u7f6e\u6587\u4ef6(\u4e0b\u9762\u4e24\u4e2a\u90fd\u8981\u7f16\u8f91)\uff0c\u6ce8\u91ca\u6389\u4e0b\u56fe\u4e2d\u7684auth required\u7c7b\u4f3c\u7684\u884c\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/pam.d\/gdm-autologin  \nvim \/etc\/pam.d\/gdm-password<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"131\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/3-4.jpg\" alt=\"\" class=\"wp-image-17230\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/3-4.jpg 692w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/3-4-300x57.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/06\/3-4-600x114.jpg 600w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u540e\u91cd\u542f\u7cfb\u7edf\uff0c\u7136\u540e\u4f7f\u7528root\u767b\u5f55\u5373\u53ef<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ubuntu\u684c\u9762\u7248\u7cfb\u7edf\u540e\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u53ea\u6709\u666e\u901a\u7528\u6237\u624d\u53ef\u4ee5\u767b\u5f55\u684c\u9762\uff0croot\u7528\u6237\u662f\u4e0d\u53ef\u4ee5\u767b\u5f55\u684c\u9762\u7684\uff0c\u56e0\u4e3aroot\u6743 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":17232,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-17225","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/17225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=17225"}],"version-history":[{"count":4,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/17225\/revisions"}],"predecessor-version":[{"id":17234,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/17225\/revisions\/17234"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/17232"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=17225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=17225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=17225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}