Parrot Linux Root Password and sudo: How Accounts Work

If you just installed Parrot Linux and tried su for the first time, you probably hit a wall: the Parrot Linux root password you expected to type does not exist. That is not a bug. Parrot OS, like modern Debian, is designed around sudo rather than a separately used root login. This guide explains how the two account models fit together, why your first user already has admin rights, how to run and troubleshoot sudo, what to do if you locked yourself out, and when (if ever) setting a real root password makes sense.

How the Parrot Linux root password actually works

Every Linux system has a root account (UID 0). What differs between distributions is whether that account has a usable password. On a fresh Parrot Linux install made with the graphical installer, you create one normal user and that user is added to the sudo group. The root account exists, but its password field is locked, so nobody can log in as root directly with a password. You get administrative access by prefixing commands with sudo and typing your own password.

You can confirm this on your own machine in two commands:

groups
sudo passwd -S root

The first line should include sudo among your groups. The second prints the status of the root account; an L in the second column means the password is locked, a P means a usable password is set. If you see L, your system is in the default state and everything below about sudo applies.

The live session behaves differently from an installed system. When you boot the ISO without installing, Parrot drops you into a pre-made live user. If that session ever asks for a password, the credentials are shown on the login or lock screen and in the project’s own download notes, so check there rather than guessing. Nothing you set in a live session survives a reboot unless you built a persistent USB (see the persistent USB guide).

Why Parrot Linux prefers sudo over a root login

The sudo model is not just a Debian habit; it has practical advantages that matter more on a security-focused distribution than almost anywhere else.

  • Accountability. Each elevated command is logged with the name of the user who ran it. On a shared lab box, that record is useful. With a shared root password you only ever see “root did it”.
  • Smaller blast radius. A terminal that is permanently root is one slip away from deleting the wrong directory. With sudo you escalate per command and drop back to your normal user automatically.
  • No password to leak. A locked root account cannot be brute-forced over SSH, because there is no password to guess. That is one less thing to harden when you expose the machine.
  • Granularity. The sudoers file lets you grant a user the right to run only specific commands, which is impossible with a single shared root password.

Parrot ships with sudo preinstalled and the first user in the sudo group, so there is nothing to configure on a standard install. If you used the Architect edition and chose a minimal package set, double-check that sudo is actually installed before you reboot out of the installer.

Everyday sudo usage on Parrot OS

Most of the time you only need the basics. A few patterns cover almost every situation:

# run one command as root
sudo apt update

# open a root shell for a longer session (exit with Ctrl+D)
sudo -i

# run a command as a different, non-root user
sudo -u www-data ls /var/www

# edit a system file safely with a backup-aware editor
sudo nano /etc/hosts

# repeat the last command with sudo
sudo !!

After you authenticate, sudo remembers you for a short grace period (fifteen minutes by default in Debian’s configuration) so you are not asked for your password on every line. If you want to end that early, run sudo -k. If you want to see whether you currently have cached credentials without running anything, sudo -n true returns silently when the cache is valid and prints an error when it is not.

One habit worth building: when editing /etc/sudoers itself, always use sudo visudo. It validates the syntax before saving, which prevents the classic mistake of a typo that breaks sudo for everyone on the system.

Adding a second user to sudo

If you create extra accounts for family members or lab work, they will not have admin rights until you add them to the group:

sudo adduser alice
sudo usermod -aG sudo alice

The -aG flags append the group rather than replacing the user’s existing groups; leaving out -a is a common way to accidentally strip someone of every other group membership. The new user needs to log out and back in before the change applies. For a deeper look at how groups, owners and permission bits interact, read the file and directory permissions reference.

“User is not in the sudoers file” and other common errors

Each message points to a different cause, and the fix is usually one line once you know which one you are looking at.

MessageMeaningFix
alice is not in the sudoers fileUser is not in the sudo groupAdd them with usermod -aG sudo from an admin account, or via recovery mode
sudo: command not foundsudo package missing (minimal installs)Install it from a root shell: apt install sudo
Sorry, try againWrong password for the current userYou need your own password, not a root one; check keyboard layout and Caps Lock
su: Authentication failureRoot password is lockedUse sudo -i instead, or set a root password deliberately (see below)
sudo: unable to resolve hostHostname missing from /etc/hostsAdd a 127.0.1.1 line with your hostname

The “not in the sudoers file” error is the one that worries people most, because it looks like you have no way back in. You do. If no other admin account exists, boot into recovery mode (covered in the next section) and run the usermod command from there.

Resetting a lost password from recovery mode

Forgetting your user password on Parrot Linux is recoverable as long as you have physical access and the disk is not encrypted with a passphrase you also forgot. The steps:

  1. Reboot and hold Shift (BIOS) or tap Esc (UEFI) while the system starts to show the GRUB menu.
  2. Choose Advanced options, then the entry ending in (recovery mode).
  3. When the recovery menu appears, pick root to drop to a root shell. Because the root password is locked, Debian-based systems usually open this shell without asking for one.
  4. The filesystem is mounted read-only at this point. Remount it writable: mount -o remount,rw /
  5. Reset your password: passwd yourusername, then type the new one twice.
  6. If the problem was a missing sudo membership, also run usermod -aG sudo yourusername.
  7. Type exit and resume normal boot, or reboot.

If the GRUB menu never shows or recovery mode fails to start, the boot recovery guide walks through the same menu in more detail, including what to do when the kernel itself is the problem.

Two caveats. First, on a system with full disk encryption you will be asked for the LUKS passphrase before GRUB can read the kernel; that passphrase is separate from your login password and cannot be reset this way. Second, this procedure is exactly why a laptop left unattended is only as safe as its disk encryption: anyone with the machine in hand can do the same thing. If that matters to you, set a GRUB password or encrypt the disk.

Should you set a real root password on Parrot Linux?

For a desktop or laptop, the honest answer is no, almost never. Everything an administrator needs is reachable through sudo -i, and leaving root locked removes an entire class of risk. There are a few situations where people reasonably choose otherwise:

  • You run Cloud edition on a VPS where the provider’s console expects a root login for rescue work. Even then, key-based SSH for root and a locked password is usually the better combination.
  • You are building a shared lab image and want a single break-glass account that does not depend on any particular user existing.
  • You simply prefer the classic workflow and understand the trade-off.

If you decide to do it, the command is the obvious one:

sudo passwd root

Pick something long and unique, and consider whether you also need to re-lock it later with sudo passwd -l root. Setting a root password does not disable sudo; both models work side by side.

Whatever you choose, make sure direct root login over SSH stays off. In /etc/ssh/sshd_config the line PermitRootLogin prohibit-password (the Debian default) allows key-only root access and blocks password attempts. Pair it with the firewall basics guide if the machine is reachable from outside your network.

Good habits for admin access on a security distro

  • Keep one account per person. Shared logins destroy the audit trail that sudo gives you for free.
  • Do not run graphical apps with sudo; it can leave root-owned files in your home directory and break your session. Use pkexec for the rare GUI tool that needs it, or run the tool’s command-line backend instead.
  • Check /var/log/auth.log (or journalctl _COMM=sudo) occasionally. If you see elevation attempts you do not recognise, investigate before anything else.
  • When experimenting with security tools in a home lab, do the risky parts inside a virtual machine. A root shell in a VM is a root shell you can throw away.

For the upstream reference on how the sudo group and configuration files are meant to be used on Debian-based systems, the Debian wiki page on sudo is the authoritative source; Parrot inherits that behaviour unchanged.

FAQ

What is the default root password on Parrot Linux?

On an installed system there is none: the root account is locked and you use sudo with your own password. In the live session, any credentials you need are shown on screen, so you never have to guess them.

How do I become root on Parrot OS?

Run sudo -i for an interactive root shell, or sudo -s if you want to keep your own environment variables. Both ask for your user password, not a root one.

Why does su not work on Parrot Linux?

Because plain su asks for the root password, and that password is locked by default. Use sudo su - or sudo -i instead, or set a root password deliberately if your workflow truly needs it.