Add the vtysh command with newly added "-n" option for multi asic to the read_only_cmds (#5845)
In multi asic platforms the "show ip bgp summary" commands is not available for user with read only privileges, so to fix this the vtysh command with the new "-n" option, added for multi asic platforms, needs to be added to the READ_ONLY_COMMANDS list in the sudoers files. Added the command vtysh -n [0-9] -c show * to list of READ_ONLY_COMMANDS in the sudoers files in this commit. Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
This commit is contained in:
parent
aee389e402
commit
2b41f6bd5c
@ -30,6 +30,7 @@ Cmnd_Alias READ_ONLY_CMDS = /bin/cat /var/log/syslog*, \
|
||||
/usr/bin/sensors, \
|
||||
/usr/bin/tail -F /var/log/syslog, \
|
||||
/usr/bin/vtysh -c show *, \
|
||||
/usr/bin/vtysh -n [0-9] -c show *, \
|
||||
/usr/local/bin/decode-syseeprom, \
|
||||
/usr/local/bin/generate_dump, \
|
||||
/usr/local/bin/lldpshow, \
|
||||
|
Reference in New Issue
Block a user