{"id":496,"date":"2022-03-24T08:54:05","date_gmt":"2022-03-24T08:54:05","guid":{"rendered":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/?p=496"},"modified":"2022-03-24T08:54:05","modified_gmt":"2022-03-24T08:54:05","slug":"htpasswd-tiedoston-tekeminen","status":"publish","type":"post","link":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/2022\/03\/24\/htpasswd-tiedoston-tekeminen\/","title":{"rendered":"htpasswd tiedoston tekeminen"},"content":{"rendered":"\n<p>.htpasswd tiedoston voi tehd\u00e4 terminaalissa k\u00e4ytt\u00e4en komentoa htpasswd. Alla valinnat ja k\u00e4ytt\u00f6:<br>Usage:<br>htpasswd [-cimBdpsDv] [-C cost] passwordfile username<br>htpasswd -b[cmBdpsDv] [-C cost] passwordfile username password<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    htpasswd -n&#91;imBdps] &#91;-C cost] username\n    htpasswd -nb&#91;mBdps] &#91;-C cost] username password<\/code><\/pre>\n\n\n\n<p>-c Create a new file.<br>-n Don\u2019t update file; display results on stdout.<br>-b Use the password from the command line rather than prompting for it.<br>-i Read password from stdin without verification (for script usage).<br>-m Force MD5 encryption of the password (default).<br>-B Force bcrypt encryption of the password (very secure).<br>-C Set the computing time used for the bcrypt algorithm<br>(higher is more secure but slower, default: 5, valid: 4 to 31).<br>-d Force CRYPT encryption of the password (8 chars max, insecure).<br>-s Force SHA encryption of the password (insecure).<br>-p Do not encrypt the password (plaintext, insecure).<br>-D Delete the specified user.<br>-v Verify password for the specified user.<br>On other systems than Windows and NetWare the \u2018-p\u2019 flag will probably not work.<br>The SHA algorithm does not use a salt and is less secure than the MD5 algorithm.<\/p>\n\n\n\n<p>Esimerkiksi tehd\u00e4\u00e4n .htpasswd tiedosto k\u00e4ytt\u00e4j\u00e4n kansioon ja asetetaan k\u00e4ytt\u00e4j\u00e4ksi service ja salasanaksi juhamatti -><\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"765\" height=\"33\" src=\"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/wp-content\/uploads\/2022\/03\/htpassu.jpg\" alt=\"\" data-id=\"497\" data-full-url=\"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/wp-content\/uploads\/2022\/03\/htpassu.jpg\" data-link=\"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/?attachment_id=497\" class=\"wp-image-497\" srcset=\"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/wp-content\/uploads\/2022\/03\/htpassu.jpg 765w, http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/wp-content\/uploads\/2022\/03\/htpassu-300x13.jpg 300w\" sizes=\"(max-width: 765px) 100vw, 765px\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p>Toinen vaihtoehto on tehd\u00e4 .htpasswd tiedosto on k\u00e4ytt\u00e4\u00e4 online htpasswd <a rel=\"noreferrer noopener\" href=\"https:\/\/wtools.io\/generate-htpasswd-online\" target=\"_blank\">generaattoria<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>.htpasswd tiedoston voi tehd\u00e4 terminaalissa k\u00e4ytt\u00e4en komentoa htpasswd. Alla valinnat ja k\u00e4ytt\u00f6:Usage:htpasswd [-cimBdpsDv] [-C cost] passwordfile usernamehtpasswd -b[cmBdpsDv] [-C cost] passwordfile username password -c Create a new file.-n Don\u2019t update file; display results on stdout.-b Use the password from the command line rather than prompting for it.-i Read password from stdin without verification (for script &hellip; <a href=\"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/2022\/03\/24\/htpasswd-tiedoston-tekeminen\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">htpasswd tiedoston tekeminen<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/496"}],"collection":[{"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=496"}],"version-history":[{"count":1,"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/496\/revisions"}],"predecessor-version":[{"id":498,"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/496\/revisions\/498"}],"wp:attachment":[{"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=496"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tietokanta.dy.fi:8243\/mikko\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}