[sudoers] Add 'SONIC_CLI_IFACE_MODE' to env_keep to ensure variable is made available to sudo calls (#2249)
This commit is contained in:
parent
4531159d18
commit
f126000cc9
@ -9,6 +9,7 @@
|
||||
Defaults env_reset
|
||||
#Defaults mail_badpass
|
||||
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
Defaults env_keep += "SONIC_CLI_IFACE_MODE"
|
||||
Defaults env_keep += "VTYSH_PAGER"
|
||||
Defaults lecture_file = /etc/sudoers.lecture
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user