{"id":1132,"date":"2025-05-19T19:06:07","date_gmt":"2025-05-19T18:06:07","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1132"},"modified":"2025-05-19T19:08:31","modified_gmt":"2025-05-19T18:08:31","slug":"included-shadow-password-functions","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/included-shadow-password-functions\/","title":{"rendered":"Included Shadow Password Functions"},"content":{"rendered":"<p>Mwnci shadow password functions that are not part of the builtin functions can be loaded with:<\/p>\n<pre>include(\"shadow\")<\/pre>\n<p>You will need be root to use these functions<\/p>\n<h2>Functions<\/h2>\n<div class=\"table-wrap\">\n<table class=\"confluenceTable\">\n<tbody>\n<tr>\n<td class=\"confluenceTd\"><strong>Command<\/strong><\/td>\n<td class=\"confluenceTd\"><strong>Definition<\/strong><\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-getspnam-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">getspnam()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns the shadow password entry for the given username as a hash.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-hashspw-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">hashspw()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns the entire shadow password file keyed on the username<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Mwnci shadow password functions that are not part of the builtin functions can be loaded with: include(&#8220;shadow&#8221;) You will need be root to use these functions Functions Command Definition getspnam() Returns the shadow password entry for the given username as a hash. hashspw() Returns the entire shadow password file keyed on the username<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1132","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1132"}],"version-history":[{"count":3,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1132\/revisions"}],"predecessor-version":[{"id":1135,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1132\/revisions\/1135"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}