{"id":8849,"date":"2022-06-08T22:15:21","date_gmt":"2022-06-08T20:15:21","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=8849"},"modified":"2023-12-20T08:42:19","modified_gmt":"2023-12-20T07:42:19","slug":"linux-add-a-user-with-a-disabled-password","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/linux-add-a-user-with-a-disabled-password\/","title":{"rendered":"Linux: Add a user with a disabled password"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_8849 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_8849')){$('.twoclick_social_bookmarks_post_8849').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Linux%3A%20Add%20a%20user%20with%20a%20disabled%20password\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Athese%20commands%20adds%20a%20user%20with%20a%20disabled%20password%3A%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/linux-add-a-user-with-a-disabled-password\\\/\",\"post_id\":8849,\"post_title_referrer_track\":\"Linux%3A+Add+a+user+with+a+disabled+password\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>these commands adds a user with a disabled password:<br \/>\n<!--more--><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@debdev ~ # useradd myuser --home-dir \/home\/myuser\r\nroot@debdev ~ # usermod -a -G myuser myuser \r\nroot@debdev ~ # passwd -d myuser \r\nroot@debdev ~ # mkdir \/home\/myuser\r\nroot@debdev ~ # chown -R myuser:myuser \/home\/myuser\r\n<\/pre>\n<p>Michael <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, these commands adds a user with a disabled password:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[146,62,224,92,145],"class_list":["post-8849","post","type-post","status-publish","format-standard","hentry","category-linux","tag-add","tag-disable","tag-linux-2","tag-password","tag-user"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/8849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=8849"}],"version-history":[{"count":5,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/8849\/revisions"}],"predecessor-version":[{"id":8854,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/8849\/revisions\/8854"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=8849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=8849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=8849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}