mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[system] rewrite editor lookup in sudoers
This commit is contained in:
parent
6f291c8a35
commit
882d2088f0
1 changed files with 11 additions and 1 deletions
|
@ -1 +1,11 @@
|
|||
Defaults pwfeedback, env_editor
|
||||
# Show asterisks when typing passwords.
|
||||
Defaults pwfeedback
|
||||
|
||||
# Disable launching arbitrary editors from the EDITOR, VISUAL and SUDO_EDITOR
|
||||
# variables when using visudo because this is a potential security hole.
|
||||
Defaults !env_editor
|
||||
# Whitelist of editors which visudo is allowed to run.
|
||||
Defaults editor=/usr/bin/nvim:/usr/bin/vim:/usr/bin/nano:/bin/nano
|
||||
# Pass-through the editor environment variables so that visudo will be able to
|
||||
# see them.
|
||||
Defaults env_keep+="EDITOR VISUAL SUDO_EDITOR"
|
||||
|
|
Loading…
Reference in a new issue