{"id":86,"date":"2021-02-05T05:48:12","date_gmt":"2021-02-05T05:48:12","guid":{"rendered":"https:\/\/wp.sheepchen.net\/?p=86"},"modified":"2021-02-13T14:06:22","modified_gmt":"2021-02-13T14:06:22","slug":"create-password-for-etc-shadow","status":"publish","type":"post","link":"https:\/\/wp.sheepchen.net\/?p=86","title":{"rendered":"Create password for \/etc\/shadow"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Sometimes you have to create a password-hash for the shadow-file. Here is an easy way to do it:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1 (better suitable for scripting &#8211; passwort is visible)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl passwd -6 -salt xyz  yourpass<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Method 2 (you enter in the PW &#8211; no clear text to see)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>mkpasswd --method=SHA-512 --stdin<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Note: <br>passing <code>-1<\/code> will generate an MD5 password, <code>-5<\/code> a SHA256 and <code>-6<\/code> SHA512 (recommended)<br>The option <code>--method<\/code> accepts <code>md5<\/code>, <code>sha-256<\/code> and <code>sha-512<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">source: [<a href=\"https:\/\/unix.stackexchange.com\/questions\/81240\/manually-generate-password-for-etc-shadow\">stackexchange<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you have to create a password-hash for the shadow-file. Here is an easy way to do it: Method 1 (better suitable for scripting &#8211; passwort is visible) Method 2 (you enter in the PW &#8211; no clear text to see) Note: passing -1 will generate an MD5 password, -5 a SHA256 and -6 SHA512 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-86","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86"}],"version-history":[{"count":3,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}