In Ubuntu you can first strike Ctrl+Alt+T which opens the terminal.
After that you can copy-paste the command below to Ctrl+C and paste in
terminal with Ctrl+Shift+V
After that you can copy-paste the command below to Ctrl+C and paste in
terminal with Ctrl+Shift+V
Command:
pkexec chmod 0440 /etc/sudoers