dotfiles/system/files/etc/sudoers.d/99_dmitmel_dotfiles
2019-10-10 00:41:33 +03:00

11 lines
493 B
Text

# 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"