sudoers file corrupted

Briefly describe your issue below:
I installed a live encrypted persistent system. everythong seems to work well, except if I want to sudo, I get an error message saying there’s a syntax error in the sudoers file.

What version of Parrot are you running? 4.6 Kde version

What method did you use to install Parrot? dd

Configured to multiboot with other systems? no

error message :

>>> /etc/sudoers: syntax error near line 27 <<<
sudo : parse error in /etc/sudoers near line 27
sudo : no valid sudoers source found, quitting
sudo : unable to initialize policy plugin

since the root account is disabled, I cannot cat or modify the file
I tried to access the persistent partition on the usb with my main OS, but there is no sudoers file inside

is there a way to recreate the file without reinstalling everything ?

su root and type your root password
or go live mode in usb, copy its sudoer file and paste into your disk
that is my solutions.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.