<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Enable superuser in hue with desktop.auth.backend.PamBackend and postgres external DB in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enable-superuser-in-hue-with-desktop-auth-backend-PamBackend/m-p/27323#M5886</link>
    <description>&lt;P&gt;You can do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. &amp;nbsp;Spawn the Hue shell:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export HUE_CONF_DIR="/var/run/cloudera-scm-agent/process/`ls -alrt /var/run/cloudera-scm-agent/process | grep HUE | tail -1 | awk '{print $9}'`"
cd /opt/cloudera/parcels/CDH/lib/hue (or /usr/lib/hue if using packages)
./build/env/bin/hue shell&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &amp;nbsp;Paste the following python in the shell replacing &amp;lt;username&amp;gt; with the user you want to become superuser:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;from django.contrib.auth.models import User
a = User.objects.get(username='&amp;lt;username&amp;gt;')
a.is_staff = True
a.is_superuser = True
a.save()&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 May 2015 12:36:52 GMT</pubDate>
    <dc:creator>cconner</dc:creator>
    <dc:date>2015-05-12T12:36:52Z</dc:date>
    <item>
      <title>Enable superuser in hue with desktop.auth.backend.PamBackend and postgres external DB</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enable-superuser-in-hue-with-desktop-auth-backend-PamBackend/m-p/27309#M5885</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We have recently updated cluster to CDH 5.3.3. We have migrated hue database to external Postgres version 9.2. We enabled security with sentry. Also we have changed mode of authentication in hue to desktop.auth.backend.PamBackend. After these, changes, ldap users are able to login and everything works fine. But no more superusers in hue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know the steps to re-enable superuser status for admin users and normal users. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jibin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:58:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enable-superuser-in-hue-with-desktop-auth-backend-PamBackend/m-p/27309#M5885</guid>
      <dc:creator>Jibin</dc:creator>
      <dc:date>2026-04-21T13:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Enable superuser in hue with desktop.auth.backend.PamBackend and postgres external DB</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enable-superuser-in-hue-with-desktop-auth-backend-PamBackend/m-p/27323#M5886</link>
      <description>&lt;P&gt;You can do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. &amp;nbsp;Spawn the Hue shell:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export HUE_CONF_DIR="/var/run/cloudera-scm-agent/process/`ls -alrt /var/run/cloudera-scm-agent/process | grep HUE | tail -1 | awk '{print $9}'`"
cd /opt/cloudera/parcels/CDH/lib/hue (or /usr/lib/hue if using packages)
./build/env/bin/hue shell&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &amp;nbsp;Paste the following python in the shell replacing &amp;lt;username&amp;gt; with the user you want to become superuser:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;from django.contrib.auth.models import User
a = User.objects.get(username='&amp;lt;username&amp;gt;')
a.is_staff = True
a.is_superuser = True
a.save()&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 May 2015 12:36:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enable-superuser-in-hue-with-desktop-auth-backend-PamBackend/m-p/27323#M5886</guid>
      <dc:creator>cconner</dc:creator>
      <dc:date>2015-05-12T12:36:52Z</dc:date>
    </item>
  </channel>
</rss>

