{"id":239,"date":"2018-04-03T17:32:50","date_gmt":"2018-04-03T17:32:50","guid":{"rendered":"http:\/\/sites.grinnell.edu\/support\/?p=239"},"modified":"2021-07-14T22:14:02","modified_gmt":"2021-07-14T22:14:02","slug":"managing-permissions","status":"publish","type":"post","link":"https:\/\/sites.grinnell.edu\/support\/uncategorized\/managing-permissions\/","title":{"rendered":"Managing Permissions"},"content":{"rendered":"<p>The default Mediawiki installed has been customized to make it a bit harder for spammers to overwhelm wikis with illegitimate content and comments. This is done by modifying the\u00a0<strong>LocalSettings.php<\/strong> file (a file that is included in every install in which it is possible to provide configurations details).<\/p>\n<p>Please note that if you are not sure how to access your cPanel, you will not be able to modify the LocalSettings,php file on your own in order to limit anonymous editing of your wiki. Please email dlac@grinnell.edu for assistance or to request domain-level cPanel access.<\/p>\n<p>By default, Mediawiki allows anonymous users to create pages and edit pages in the wiki. The modifications change this in the following ways:<\/p>\n<ul>\n<li class=\"level1\">\n<div class=\"li\">Anonymous users cannot edit existing pages<\/div>\n<\/li>\n<li class=\"level1\">\n<div class=\"li\">Anonymous users cannot create pages<\/div>\n<\/li>\n<li class=\"level1\">\n<div class=\"li\">Registered users must click the confirmation link in the registration email in order to edit or create pages<\/div>\n<\/li>\n<\/ul>\n<p>This approach should drastically reduce unsolicited content and comments on Mediawiki installations. One further step that administrator might take is to turn registration off after a predetermined amount of time. Users must create accounts by this date; after that, the settings are changed so that registrations are no longer open.<\/p>\n<p>To add this setting, you must edit\u00a0<strong>LocalSettings.php<\/strong>\u00a0in your Mediawiki install:<\/p>\n<ol>\n<li class=\"vspace\">Login to cPanel and browse to your\u00a0<a class=\"urlextern\" title=\"http:\/\/sites.grinnell.edu\/support\/cpanel\/accessing-your-files-through-the-file-manager\" href=\"http:\/\/sites.grinnell.edu\/support\/uncategorized\/accessing-your-files-through-the-file-manager\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">File Manager<\/a>.<br \/>\n<a href=\"https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/03\/2018-03-30-at-12.37-PM-1.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-206\" src=\"https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/03\/2018-03-30-at-12.37-PM-1.png\" alt=\"Screenshot of cPanel search bar searching for File Manager\" width=\"759\" height=\"379\" srcset=\"https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/03\/2018-03-30-at-12.37-PM-1.png 759w, https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/03\/2018-03-30-at-12.37-PM-1-300x150.png 300w\" sizes=\"(max-width: 759px) 100vw, 759px\" \/><\/a><\/li>\n<li class=\"vspace\">In the File Manager, browse to the folder within<strong> public_html<\/strong> that contains your Mediawiki install. If you installed the wiki at the root of your domain, you won&#8217;t need to go any further than public_html. If you installed the wiki in a subdomain or subdirectory, you&#8217;ll need to find the directory that is associated with that space.<\/li>\n<li class=\"vspace\">Locate\u00a0<strong>LocalSettings.php. <\/strong>Once selecting the file, click <strong>download<\/strong>\u00a0in the top menu bar to download the file as a backup before proceeding. Then click\u00a0<strong>Edit<\/strong>\u00a0in the top menu bar to edit the file.<br \/>\n<a href=\"https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/04\/2018-04-03-at-1.21-PM.png\"><img decoding=\"async\" class=\"alignnone wp-image-241 size-full\" src=\"https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/04\/2018-04-03-at-1.21-PM.png\" alt=\"Screenshot of File Manager wiki folders with LocalSettings.php file highlighted\" width=\"1430\" height=\"727\" srcset=\"https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/04\/2018-04-03-at-1.21-PM.png 1430w, https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/04\/2018-04-03-at-1.21-PM-300x153.png 300w, https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/04\/2018-04-03-at-1.21-PM-768x390.png 768w, https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/04\/2018-04-03-at-1.21-PM-1024x521.png 1024w\" sizes=\"(max-width: 1430px) 100vw, 1430px\" \/><\/a><\/li>\n<li class=\"vspace\">\u00a0Confirm that you want to edit the file.<br \/>\n<img decoding=\"async\" class=\"shadow alignnone wp-image-465 size-full\" src=\"http:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2019\/10\/2019104.4-MediaWiki-files-confirm-edit.gif\" alt=\"Screenshot of file edit confirmation pop-up\" width=\"502\" height=\"349\" \/><\/li>\n<li class=\"vspace\">Browse to the bottom of the document, and locate the custom settings that were added during the Mediawiki install and the following line:<\/li>\n<\/ol>\n<pre>$wgGroupPermissions['*']['createaccount'] = false;<\/pre>\n<p><a href=\"https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/04\/2018-04-03-at-1.30-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-242\" src=\"https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/04\/2018-04-03-at-1.30-PM.png\" alt=\"Screenshot of code configuration options\" width=\"743\" height=\"634\" srcset=\"https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/04\/2018-04-03-at-1.30-PM.png 743w, https:\/\/sites.grinnell.edu\/support\/wp-content\/uploads\/2018\/04\/2018-04-03-at-1.30-PM-300x256.png 300w\" sizes=\"(max-width: 743px) 100vw, 743px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The default Mediawiki installed has been customized to make it a bit harder for spammers to overwhelm wikis with illegitimate content and comments. This is done by modifying the\u00a0LocalSettings.php file (a file that is included in every install in which it is possible to provide configurations details). Please note that if you are not sure [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-239","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/sites.grinnell.edu\/support\/wp-json\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.grinnell.edu\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.grinnell.edu\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.grinnell.edu\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.grinnell.edu\/support\/wp-json\/wp\/v2\/comments?post=239"}],"version-history":[{"count":8,"href":"https:\/\/sites.grinnell.edu\/support\/wp-json\/wp\/v2\/posts\/239\/revisions"}],"predecessor-version":[{"id":754,"href":"https:\/\/sites.grinnell.edu\/support\/wp-json\/wp\/v2\/posts\/239\/revisions\/754"}],"wp:attachment":[{"href":"https:\/\/sites.grinnell.edu\/support\/wp-json\/wp\/v2\/media?parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.grinnell.edu\/support\/wp-json\/wp\/v2\/categories?post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.grinnell.edu\/support\/wp-json\/wp\/v2\/tags?post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}