{"id":481,"date":"2024-10-23T05:55:40","date_gmt":"2024-10-23T04:55:40","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=481"},"modified":"2024-11-11T04:26:01","modified_gmt":"2024-11-11T04:26:01","slug":"included-group-functions","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/included-group-functions\/","title":{"rendered":"Included Group Functions"},"content":{"rendered":"<p>Mwnci group functions that are not part of the builtin functions can be loaded with<\/p>\n<pre>include(\"grp\")<\/pre>\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-getgrent-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">getgrent()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns a hash for a given group name or Gid<\/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-getgrgid-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">getgrgid()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns a hash for a given Gid<\/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-getgrnam-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">getgrnam()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns a hash for a given group name<\/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-getgroups-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">getgroups()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns an array of Gid&#8217;s that the given username belongs to<\/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-groups-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">groups()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns a hash of group names and associated Gid&#8217;s that a given user belongs to<\/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-hashgrp-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">hashgrp()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns a hash of the entire group file keyed on group name<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Mwnci group functions that are not part of the builtin functions can be loaded with include(&#8220;grp&#8221;) Functions Command Definition getgrent() Returns a hash for a given group name or Gid getgrgid() Returns a hash for a given Gid getgrnam() Returns a hash for a given group name getgroups() Returns an array of Gid&#8217;s that the &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/included-group-functions\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Included Group Functions&#8221;<\/span><\/a><\/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-481","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/481","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=481"}],"version-history":[{"count":4,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/481\/revisions"}],"predecessor-version":[{"id":551,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/481\/revisions\/551"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}