{"id":3340,"date":"2020-06-27T17:11:35","date_gmt":"2020-06-27T09:11:35","guid":{"rendered":"https:\/\/www.liangliang.org.cn\/?p=3340"},"modified":"2020-06-27T17:12:51","modified_gmt":"2020-06-27T09:12:51","slug":"sddm%e6%ac%a2%e8%bf%8e%e7%95%8c%e9%9d%a2%e7%94%a8%e6%88%b7%e6%98%be%e7%a4%ba%e6%8e%a7%e5%88%b6%ef%bc%88debian10hideshells-sbin-nologin-bin-false%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.liangliang.org.cn\/?p=3340","title":{"rendered":"Sddm\u6b22\u8fce\u754c\u9762\u7528\u6237\u663e\u793a\u63a7\u5236"},"content":{"rendered":"<h1>Sddm\u6b22\u8fce\u754c\u9762\u7528\u6237\u663e\u793a\u63a7\u5236<\/h1>\n<p>Debian10\u73af\u5883<\/p>\n<p>\u4e00\u4e2a\u6216\u591a\u4e2a\u7528\u6237\u6ca1\u6709\u51fa\u73b0\u5728\u6b22\u8fce\u754c\u9762<br \/>\n\u8b66\u544a\uff1a \u7528\u6237\u8bbe\u7f6e\u8fc7\u4f4e\u6216\u8fc7\u9ad8\u7684 UID \u8303\u56f4\u5e94\u8be5\u5927\u4f53\u4e0a\u4e0d\u4f1a\u66b4\u9732\u7ed9 Display manager (\u7b80\u4f53\u4e2d\u6587)\u3002<br \/>\nSDDM \u9ed8\u8ba4\u4f1a\u663e\u793a UID \u5728 1000 \u5230 65000 \u8303\u56f4\u5185\u7684\u7528\u6237\uff0c\u5982\u679c\u60f3\u8981\u663e\u793a\u7684\u7528\u6237\u7684 UID \u5c0f\u4e8e\u8fd9\u4e2a\u8303\u56f4\uff0c\u90a3\u4e48\u60a8\u5c31\u4e0d\u5f97\u4e0d\u66f4\u6539\u8fd9\u4e2a\u8303\u56f4\u3002\u6bd4\u5982\uff0c\u5bf9\u4e8e UID \u4e3a 501\u65f6\uff0c\u53ef\u4ee5\u4fee\u6539\uff1a<\/p>\n<pre><code class=\"language-shell\">\/etc\/sddm.conf\n[Users]\nHideShells=\/sbin\/nologin,\/bin\/false\n# Hidden users, this is if any system users fall within your range, see \/etc\/passwd on your system.\nHideUsers=git,sddm,systemd-journal-remote,systemd-journal-upload\n\n# Maximum user id for displayed users\nMaximumUid=65000\n\n# Minimum user id for displayed users\nMinimumUid=500 #My UID is 501<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sddm\u6b22\u8fce\u754c\u9762\u7528\u6237\u663e\u793a\u63a7\u5236 Debian10\u73af\u5883 \u4e00\u4e2a\u6216\u591a\u4e2a\u7528\u6237\u6ca1\u6709\u51fa\u73b0\u5728\u6b22\u8fce\u754c\u9762 \u8b66\u544a\uff1a \u7528\u6237\u8bbe\u7f6e\u8fc7\u4f4e\u6216\u8fc7\u9ad8\u7684 UID \u8303\u56f4\u5e94\u8be5\u5927\u4f53\u4e0a\u4e0d\u4f1a\u66b4\u9732\u7ed9 Display manager (\u7b80\u4f53\u4e2d\u6587)\u3002 S&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-3340","post","type-post","status-publish","format-standard","hentry","category-debian"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/3340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3340"}],"version-history":[{"count":2,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/3340\/revisions"}],"predecessor-version":[{"id":3342,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/3340\/revisions\/3342"}],"wp:attachment":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}