![add user to sudo add user to sudo](https://www.mobygames.com/images/covers/l/646881-shell-shockers-browser-front-cover.png)
sensible-editor defaults to nano now, and select-editor (which will run by default the first time) allows you to select another one. Save, and from now on launching visudo with gksu visudo for Ubuntu kdesu visudo for Kubuntu or sudo visudo in the terminal will now open with your chosen editor.įor Ubuntu 8.10: The default editor for visudo has changed to sensible-editor.
Add user to sudo full#
So the top of the file should now look like this: Defaults editor=/usr/bin/nanoĪgain, if you wish to use another text editor, replace "nano" with the full path to the text editor of your choice. Now launch visudo with sudo -E visudo in the terminal, and put in Defaults editor=/usr/bin/nano in the file. Run source ~/.bashrc to ensure the changes you made have taken effect. If you wish to use another text editor, replace "nano" with any text editor of your choice. To change this behavior, open your ~/.bashrc file, and append the line to the bottom of the file: export EDITOR="nano" The file is composed of aliases (basically variables) and user specifications (which control who can run what).įor Ubuntu 8.04: The default editor for visudo has changed to vi, which may cause confusion to those who are not familiar to its command bindings. The /etc/sudoers file controls who can run what commands as what users on what machines and can also control special things such as whether you need a password for particular commands. Enabling Visual Feedback when Typing Passwords.Shutting Down From The Console Without A Password.