Scenario 1: You have messed up editing your sudoers file and now your usual account cannot run sudo commands as it used to.
Scenario 2: You need to regain admin/sudo privileges with an account whose password you know (or going to change soon with Rescapp).
This option lets you rebuild your distribution sudoers file so that you can regain sudo/admin privileges with a given user.
Step 1Rescapp searches for GNU/Linux partitions.
Step 2Rescapp displays a list of found partitions. At the same time you are prompted:
Which GNU/Linux partition? You are supposed to choose, your main GNU/Linux distribution, (you will probably only see one) and press the OK button.
Step 3You are prompted:Which user? Select the desired user from the list.
Step 4Rescapp backups the old /etc/sudoers file, into a file named /etc/sudoers_YYYY_... and tries to setup a new, /etc/sudoers file that includes, the selected user as the sudo admin.
Step 5You are informed about the regenerate sudoers file process.You either get:
[SUCCESS] Success! The sudoers file was changed OK! :)
or
[ERROR] The sudoers file was not changed. Something went wrong! :(
Step 6Once you are able to gain, admin privileges on your system, you are advised to check, if your sudoers file is correct, depending on your distribution, via the visudo or sudoedit command.