# Impossible to use super-user not as root

**URL:** <https://forum.ansible.com/t/impossible-to-use-super-user-not-as-root/46312>\
**Category:** Get Help\
**Tags:** ubuntu\
**Created:** [September 16, 2026, 11:29am UTC](https://forum.ansible.com/t/impossible-to-use-super-user-not-as-root/46312 "2026-09-16T11:29:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_m](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/a_m/32/11175_2.png) [@a\_m](https://forum.ansible.com/u/a_m)\
**Post date:** [September 16, 2026, 11:29am UTC](https://forum.ansible.com/t/impossible-to-use-super-user-not-as-root/46312/1 "2026-09-16T11:29:52Z")

</div>

hello,  
could you edit the code of ansible to use another user, as root when we need superuser, in playbook  
For example, of user name dragonXXV

my ansible tools, and linux version are :

```auto
fsfsdf@fqdfs:~/Documents/efqezfef$ ansible-playbook --version
ansible-playbook [core 2.21.4]
  config file = /home/alexandre/Documents/efqezfef/ansible.cfg
  configured module search path = ['/home/alexandre/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/alexandre/.local/share/pipx/venvs/ansible/lib/python3.12/site-packages/ansible
  ansible collection location = /home/alexandre/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/alexandre/.local/bin/ansible-playbook
  python version = 3.12.3 (main, Aug 31 2026, 10:18:26) [GCC 13.3.0] (/home/alexandre/.local/share/pipx/venvs/ansible/bin/python)
  jinja version = 3.1.6
  pyyaml version = 6.0.2 (with libyaml v0.2.5)
fsfsdf@fqdfs:~/Documents/efqezfef$ date
mer. 16 sept. 2026 13:27:20 CEST
fsfsdf@fqdfs:~/Documents/efqezfef$ uname -r
6.8.1-1059-realtime
fsfsdf@fqdfs:~/Documents/efqezfef$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.5 LTS
Release: 24.04
Codename: noble

```

il added my user to root group  
Best regards

---

<div class="post-metadata">

**Author:** ![bcoca](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bcoca/32/9269_2.png) [@bcoca](https://forum.ansible.com/u/bcoca)\
**Post date:** [September 16, 2026, 12:51pm UTC](https://forum.ansible.com/t/impossible-to-use-super-user-not-as-root/46312/2 "2026-09-16T12:51:30Z")

</div>

> **[Understanding privilege escalation: become — Ansible Community Documentation](https://docs.ansible.com/projects/ansible/latest/playbook_guide/playbooks_privilege_escalation.html#using-become)**
>
> Ansible uses existing privilege escalation systems to execute tasks with root privileges or with another user’s permissions. Because this feature allows you to ‘become’ another user, different from the user that logged into the machine (remote user),...

Specifically see `become user`.
