==================================
Administrative commands (AER 2.32)
==================================

.. raw:: html

    <p>In all examples below, replace &#8220;jsmith&#8221; with the name of the user whose settings you wish to change.</p>
    <p>Reset a user&#8217;s password interactively:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">reset</span><span class="o">-</span><span class="n">password</span> <span class="n">jsmith</span>
    </pre></div>
    </div>
    <p>The above command will prompt you to enter the new password twice. You may also reset the password directly:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span>anaconda-server-admin reset-password --password abcDEF123! jsmith
    </pre></div>
    </div>
    <p>NOTE: Replace &#8220;abcDEF123!&#8221; with the new password.</p>
    <p>Set a user&#8217;s plan to a free and unlimited plan:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">free</span><span class="o">-</span><span class="n">unlimited</span><span class="o">-</span><span class="n">plan</span> <span class="n">jsmith</span>
    </pre></div>
    </div>
    <p>Set all users with a given email domain to a free and unlimited plan:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">free</span><span class="o">-</span><span class="n">unlimited</span><span class="o">-</span><span class="n">plan</span><span class="o">-</span><span class="k">for</span><span class="o">-</span><span class="n">domain</span> <span class="n">gmail</span><span class="o">.</span><span class="n">com</span>
    </pre></div>
    </div>
    <p>Before running this command you can display what the command will do without changing anything:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">free</span><span class="o">-</span><span class="n">unlimited</span><span class="o">-</span><span class="n">plan</span><span class="o">-</span><span class="k">for</span><span class="o">-</span><span class="n">domain</span> <span class="o">--</span><span class="n">dry</span><span class="o">-</span><span class="n">run</span> <span class="n">gmail</span><span class="o">.</span><span class="n">com</span>
    </pre></div>
    </div>
    <p>NOTE: Replace &#8220;gmail.com&#8221; with the domain whose users you wish to upgrade.</p>
    <p>Give the user the privileges of a superuser or remove them:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="nb">set</span><span class="o">-</span><span class="n">superuser</span> <span class="n">jsmith</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">unset</span><span class="o">-</span><span class="n">superuser</span> <span class="n">jsmith</span>
    </pre></div>
    </div>
    <p>Give the user the privileges of a staff user or remove them:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="nb">set</span><span class="o">-</span><span class="n">staff</span> <span class="n">jsmith</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">unset</span><span class="o">-</span><span class="n">staff</span> <span class="n">jsmith</span>
    </pre></div>
    </div>
    <p>Change a user&#8217;s login name (username):</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">move</span><span class="o">-</span><span class="n">user</span> <span class="n">old_name</span> <span class="n">new_name</span>
    </pre></div>
    </div>
    <p>NOTE: Replace &#8220;old_name&#8221; with the current username, and &#8220;new_name&#8221; with the new username.</p>
    <p>Ensure the files recorded in the database exist. Optionally also ensure that they have the correct checksum:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">verify</span><span class="o">-</span><span class="n">storage</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">verify</span><span class="o">-</span><span class="n">storage</span> <span class="o">--</span><span class="n">md5</span>
    </pre></div>
    </div>
    <p>List the key names of files with problems:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">verify</span><span class="o">-</span><span class="n">storage</span> <span class="o">--</span><span class="nb">list</span><span class="o">-</span><span class="n">files</span>
    </pre></div>
    </div>
    <p>Scan the storage for unused files and delete them:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">clean</span><span class="o">-</span><span class="n">storage</span>
    </pre></div>
    </div>
    <p>Update the bundled installers:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">update</span><span class="o">-</span><span class="n">installers</span>
    </pre></div>
    </div>
