Skip to content

how to set micro as default for sudo? #2670

Answered by tomodachi94
lockcher4 asked this question in Q&A
Discussion options

You must be logged in to vote

From Stack Overflow:

To make use of the editor in visudo actually, we need to handle that sudo does not keep the environment variables by normally. > The option -E changes that.

sudo -E visudo

Without the -E here, you would end up with a default of nano again.

After executing sudo -E visudo, try executing visudo /etc/some-file-that-needs-sudo.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lockcher4
Comment options

Answer selected by lockcher4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants