User Tools

Site Tools


sudo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sudo [2014/01/28 20:47]
Burt Henry [Adjusting Sudo Behavior] wiki syntax correction
sudo [2017/11/11 22:47] (current)
Line 73: Line 73:
 The visudo tool checks for syntax erros before saving changes to sudoers files. It works with standard text editors. I think the "​vi"​ in "​visudo"​ stands for the VI text editor, but visudo works with the editor of your choice, by default the system'​s default editor is used. To change the editor you use with visudo run a command like The visudo tool checks for syntax erros before saving changes to sudoers files. It works with standard text editors. I think the "​vi"​ in "​visudo"​ stands for the VI text editor, but visudo works with the editor of your choice, by default the system'​s default editor is used. To change the editor you use with visudo run a command like
  
-<​code>​ +<​code>​sudo export EDITOR=ed 
-sudo export EDITOR=ed +</code>
-<​code>​+
 to use ed as the default editor ** for the life of the session in the active terminal or console. ** Replace ed with another editor if desired, to use ed as the default editor ** for the life of the session in the active terminal or console. ** Replace ed with another editor if desired,
  
-<​code>​ +<​code>​sudo export EDITOR=nano 
-sudo export EDITOR=nano +</code>
-<​code>​+
  
 for example. for example.
sudo.1390942054.txt.gz · Last modified: 2017/11/11 22:47 (external edit)