======================
Disabling sudo for yum
======================

By default, ``sudo`` access for ``yum`` is enabled on the Data Science & AI Workbench platform. You can easily disable it, however, if your organization requires it.

#. Log in to Workbench, select |menu| **Menu** in the top right corner, and click the **Administrative Console** link displayed at the bottom of the slide out window.
          
#. Click **Manage Resources**.

#. Log in to the Operations Center using the Administrator credentials :doc:`configured after installation <../../install/config>`.

#. Select **Configuration** from the menu on the left.

#. Verify that the ``anaconda-enterprise-anaconda-platform.yml`` configuration file is selected in the **Config map** drop-down menu.

   .. note::
      Anaconda recommends that you make a backup copy of this file since you will be editing it directly.

#. Scroll down to the ``sudo-yum`` section of the Config map:

   .. thumbnail:: ../../images/sudo-yum.png
      :align: center

#. Change the setting from ``default`` to ``disable``::

     sudo-yum: disable

#. Click **Apply** to save your changes.  

#. To update the Workbench server with your changes, restart services by running these commands *on the master node*::

     sudo gravity enter
     kubectl get pods | grep ap- | cut -d' ' -f1 | xargs kubectl delete pods

To re-enable sudo yum, simply change this Config map setting back to ``default``, save your changes, and restart services.

.. |menu| image:: ../../images/icons/menu.png
          :width: 25 px