{"id":517,"date":"2024-11-08T10:14:20","date_gmt":"2024-11-08T10:14:20","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=517"},"modified":"2024-11-08T10:14:20","modified_gmt":"2024-11-08T10:14:20","slug":"mwnci-getpwnam-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-getpwnam-function\/","title":{"rendered":"Mwnci getpwnam() Function"},"content":{"rendered":"<div class=\"entry-content\">\n<h2>Syntax<\/h2>\n<p>getpwnam<strong>(<em>string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>getpwnam()<\/i> function returns a hash of the password entry for the given user.<\/p>\n<h2>Example<\/h2>\n<pre>include(\"pwd\")\r\nprintln(getpwnam(\"root\"))\r\n\r\n{\"Home\": \"\/root\", \"Shell\": \"\/bin\/bash\", \"Gecos\": [\"root\"], \"User\": \"root\", \"Uid\": 0, \"Gid\": 0}\r\n<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Syntax getpwnam(string) Description The getpwnam() function returns a hash of the password entry for the given user. Example include(&#8220;pwd&#8221;) println(getpwnam(&#8220;root&#8221;)) {&#8220;Home&#8221;: &#8220;\/root&#8221;, &#8220;Shell&#8221;: &#8220;\/bin\/bash&#8221;, &#8220;Gecos&#8221;: [&#8220;root&#8221;], &#8220;User&#8221;: &#8220;root&#8221;, &#8220;Uid&#8221;: 0, &#8220;Gid&#8221;: 0}<\/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-517","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/517","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=517"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/517\/revisions"}],"predecessor-version":[{"id":518,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/517\/revisions\/518"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}