Please help!


New Member
Mar 16, 2021
Reaction score
Hi, i try to change the sudoers file of parrot because everyone was have access to sudo command without password. The file was like this admin ALL=(ALL) NOPASSWD:ALL and i change NOPASSWD:ALL to NOPASSWD:root. Now when i try to make sudo command it prompt me this: user is not in the sudoers file. This incident will be reported. So i can no longer access the sudoers file and my system is lock.

I see i have to access the recovery menu from grub and choose the root shell, but this in ubuntu. I wonder how in persistent parrot.
If you know the root password you can just become root from the command-line, if not you will have to to boot from the installation into the live environment, mount the root filesystem, chroot into it and then fix it from there.
1. Boot from installation media.
2. mount the partition that contains your root partition, for example: sudo mount /dev/vda1 /mnt (You can find your root partition by running lsblk in the terminal)
3. Then chroot into your system: sudo chroot "/mnt/@"
4. From there you can edit your sudoers file using vim or nano
Last edited: