%META:TOPICINFO{author="ProjectContributor" date="1727167921" format="1.1" version="1"}%
%META:TOPICPARENT{name="WikiUsers"}%
---+ Wiki Administrator User

The %TOPIC% allows you to login without needing to register a user,
or to temporarily login as %TOPIC% using the password set in configure, and then log back out to the same User and Group as before.

If your system is configured using a !UserMapper that permits group maintenance, (!TopicUserMapping for example) it is recommended to include the %SYSTEMWEB%.AdminToggle topic to obtain admin rights.

%STARTSECTION{"sudo_login"}%
%IF{"context admin_available" then="
---+++ How to login as %TOPIC%
   * Login as the internal Wiki administrator:
      * %ADMINLOGIN%
   * Logout from Administrator:
      * click the [[%LOGOUTURL%][Logout link]]"
else="%MAKETEXT{"There is no _internal admin_ password set.  See [[[_1]][Installation Guide section on the internal admin]] for further help." args="%SYSTEMWEB%.InstallationGuide#InternalAdmin"}%"}%

*%X% NOTE:* If you lock yourself out of <nop>AdminUser during setup activities, never established a password, or have forgotten the password,
See %SYSTEMWEB%.InstallationGuide#InternalAdmin for information on configuring the
_internal admin_ password..
%ENDSECTION{"sudo_login"}%

---+++ Prerequisites
   * =Security and Authentication -&gt; Sessions : Use Client Sessions:= must be enabled in configure (this is the default)
   * =Security and Authentication, -&gt; Passwords : Internal Admin Password:=  must be set otherwise the _internal admin user_ is automatically disabled.   A password is _not_ set by default.
   * If your Foswiki is configured to use !ApacheLoginManager, you will need to log in as a valid user first.
   
<blockquote class="foswikiAlert">
%X% Do not add =AdminUser= to your =.htpasswd= file or other authentication system.  You should only access the =AdminUser= by logging in
with the the _internal admin user_ __admin__  using the password set under the Passwords tab in =bin/configure= script. Use the login link on this page, or log in directly with
Template Login. Logging in with the =AdminUser= !WikiName through the normal authentication process will not work, and will not acquire admin rights.
</blockquote>

---
*Related topics:* [[%WIKIUSERSTOPIC%]], [[AdminGroup]], [[WikiGroups]], [[%SYSTEMWEB%.AccessControl][AccessControl]]

%META:PREFERENCE{name="ALLOWTOPICCHANGE" title="ALLOWTOPICCHANGE" type="Set" value="AdminUser"}%
%META:PREFERENCE{name="PERMSET_CHANGE" title="PERMSET_CHANGE" type="Local" value="nobody"}%
