root user

The all-powerful administrator account on Linux, with user ID 0, which can read or change anything.

In more detail

Root can bypass every permission check, so anything running as root can do unlimited damage if it goes wrong or is taken over. Log in as an ordinary account and gain root rights only for the work that needs them. Containers also run as root by default unless the image or runtime sets another user.

Examples

Ansible connects as an ordinary user and uses become for tasks that need root; become_user defaults to root.
Build stages may run as root to install packages; the runner stage switches away.
The kernel skips most permission checks for UID 0, so a mistake or compromise as root affects the whole system. Root is an identity with broad authority, not a shortcut around the permission model. Use sudo with narrow rules instead of working in a root shell.

Related terms

Taught in

References

Certification courses