# \[AWX 19.5\] - password for awx superuser container

**URL:** <https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [February 4, 2022, 3:29am UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290 "2022-02-04T03:29:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wesley\_Santos](https://avatars.discourse-cdn.com/v4/letter/w/f08c70/32.png) [@Wesley\_Santos](https://forum.ansible.com/u/Wesley_Santos)\
**Post date:** [February 4, 2022, 3:29am UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/1 "2022-02-04T03:29:37Z")

</div>

This command creates a superuser to access awx web;  
_kubectl exec -n awx -it awx-xxxxxxxxxxxx -c awx-task – /bin/bash_

But what is the superuser password of the container user awx;?  
or how to configure a superuser for awx-taks container?

**bash-4.4$ id**

uid=1000(awx) gid=0(root) groups=0(root),1000

**bash-4.4$ sudo su -**

We trust you have received the usual lecture from the local System

Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.  
#2) Think before you type.  
#3) With great power comes great responsibility.

**[sudo] password for awx:**

---

<div class="post-metadata">

**Author:** ![Rebeccah\_Hunter](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Rebeccah\_Hunter](https://forum.ansible.com/u/Rebeccah_Hunter)\
**Post date:** [February 9, 2022, 8:59pm UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/2 "2022-02-09T20:59:06Z")

</div>

Hi there,  
We have docs on how to configure a superuser here: [https://docs.ansible.com/ansible-tower/latest/html/administration/tipsandtricks.html#id3](https://docs.ansible.com/ansible-tower/latest/html/administration/tipsandtricks.html#id3)  
cheers,  
@rebeccahhh

---

<div class="post-metadata">

**Author:** ![Balaji1](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@Balaji1](https://forum.ansible.com/u/Balaji1)\
**Post date:** [March 3, 2022, 4:23am UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/3 "2022-03-03T04:23:28Z")

</div>

Unfortunately, the link does not answer the original question.  
I am facing this issue too. I am unable to become root in awx-ansible-task pod.

---

<div class="post-metadata">

**Author:** ![Martin\_Gabriel](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@Martin\_Gabriel](https://forum.ansible.com/u/Martin_Gabriel)\
**Post date:** [March 5, 2022, 6:40pm UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/4 "2022-03-05T18:40:18Z")

</div>

im also interested into this.

Dne čtvrtek 3. března 2022 v 5:23:28 UTC+1 uživatel Balaji Rchawdi napsal:

---

<div class="post-metadata">

**Author:** ![Thomas\_Renzy](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@Thomas\_Renzy](https://forum.ansible.com/u/Thomas_Renzy)\
**Post date:** [March 7, 2022, 6:10pm UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/5 "2022-03-07T18:10:06Z")

</div>

What I’ve used is:

kubectl -n (AWX container name) get secret awx-admin-password -o go-template=‘{{range $k,$v := .data}}{{printf “%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{”\n"}}{{end}}’

Hope this helps.  
Thomas

---

<div class="post-metadata">

**Author:** ![Balaji1](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@Balaji1](https://forum.ansible.com/u/Balaji1)\
**Post date:** [March 16, 2022, 1:31am UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/6 "2022-03-16T01:31:27Z")

</div>

Thank You, Thomas

This command gives the password for user “admin”. I used it to log in to http://\<IP\_address\>:31280 awx webUI.

---

<div class="post-metadata">

**Author:** ![hieronymus](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/hieronymus/32/1624_2.png) [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Post date:** [July 1, 2022, 12:32pm UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/7 "2022-07-01T12:32:11Z")

</div>

Hi everyone,  
I am also very interested in getting the answer.  
Have you found a solution in the meantime?

Thank you and best regards, H

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [July 6, 2022, 8:13pm UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/8 "2022-07-06T20:13:09Z")

</div>

Hi,

You may just try to do “docker exec -u0 -it container\_name bash” to get root permission in the running container. If you are on minikube you may need to do a “minikube ssh” first to gain access to the running containers. This will be different if you are using something else like k3s

AWX Team

---

<div class="post-metadata">

**Author:** ![hieronymus](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/hieronymus/32/1624_2.png) [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Post date:** [July 8, 2022, 3:15pm UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/9 "2022-07-08T15:15:49Z")

</div>

Hi  
Thanks but I’m using as you said k3s. Is this a solution with that?  
Hiero-nymo

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [July 8, 2022, 4:33pm UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/10 "2022-07-08T16:33:40Z")

</div>

Yoy can use kubectl Exec into the awx-Web container

---

<div class="post-metadata">

**Author:** ![kurokobo1](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kurokobo1](https://forum.ansible.com/u/kurokobo1)\
**Post date:** [July 10, 2022, 12:17pm UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/11 "2022-07-10T12:17:26Z")

</div>

Hi,

Technically, you can.  
However, it is important to note that any changes in the container are volatile and all changes will be lost on re-creation of the pod.  
If you need this method for anything other than debugging or investigation purposes, I think you are probably on the wrong way for your purpose.

$ sudo /usr/local/bin/k3s ctr task exec -t --exec-id --user 0 bash

e.g.

$ sudo /usr/local/bin/k3s ctr task exec -t --exec-id bash-example --user 0 c2db413be4684979c9055c788f751c676b8c898d33582c5fa7dbeeef8ec8fb22 bash

---

<div class="post-metadata">

**Author:** ![Shubha\_Shivanna](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@Shubha\_Shivanna](https://forum.ansible.com/u/Shubha_Shivanna)\
**Post date:** [February 17, 2023, 12:02pm UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/12 "2023-02-17T12:02:19Z")

</div>

i am having same question, can anyone help ?  
trying to install tcpdump

> > kubectl exec -i -t -n awx --container awx-web – /bin/bash  
> > bash-5.1$ **yum install tcpdump**  
> > Error: This command has to be run with superuser privileges (under the root user on most systems).  
> > bash-5.1$  
> > bash-5.1$  
> > bash-5.1$ sudo yum install tcpdump

We trust you have received the usual lecture from the local System  
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.  
#2) Think before you type.  
#3) With great power comes great responsibility.

**[sudo] password for awx:**

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [February 17, 2023, 5:39pm UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/13 "2023-02-17T17:39:00Z")

</div>

@khush which k8s are you using? (k3s, minikube, etc)

kuro’s suggestion above is the way to do it via k3s

the other alternative is to use docker to build a new image based off of [quay.io/ansible/awx](http://quay.io/ansible/awx) image and install tcpdump. Then you can use that image by setting “image” and “image\_version” in your awx CRD

AWX Team

---

<div class="post-metadata">

**Author:** ![Shubha\_Shivanna](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@Shubha\_Shivanna](https://forum.ansible.com/u/Shubha_Shivanna)\
**Post date:** [February 21, 2023, 8:55am UTC](https://forum.ansible.com/t/awx-19-5-password-for-awx-superuser-container/36290/14 "2023-02-21T08:55:55Z")

</div>

tanq u. lemme chk to install in the new image
