Been following instructions for editing sudoers file, made changes but the instructions say to exit using ctrl+x - this just gives me a capital X and a caret. Have tried ctrl:x ctrl+Q Esc.
Not using nano or any other gui (just putty terminal), the change I am trying to save is to set nano as default editor.
I just need to know which keys do I press and in which order?
Also as a side question are there any 'good' linux tutorial sites, I seem to trawl for hours trying to find the simplest answers? 'Good' as in explained well and without omitting vital info (like which gui you are using).
Upon finding an error, visudo will print a message stating the line number(s) where the error occurred and the user will receive the “What now?” prompt. At this point the user may enter 'e' to re-edit the sudoers file, 'x' to exit without saving the changes, or 'Q' to quit and save changes.
If you run sudo su , that will open a shell as the superuser. Type exit or Ctrl - D to exit this shell.
To make changes to sudo from putty/bash:
Just open file by nano /file_name
Once done, press CTRL+O and then Enter to save. Then press CTRL+X to return.
Here CTRL+O : is CTRL and O for Orange Not 0 Zero
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With