From e5c6c2f9b90c23cb4eec813865887c752f2c3ec4 Mon Sep 17 00:00:00 2001 From: Hua Liu <58683130+liuh-80@users.noreply.github.com> Date: Wed, 5 Apr 2023 15:29:58 -0700 Subject: [PATCH] Improve sudo cat command for RO user. (#14428) (#14437) Improve sudo cat command for RO user. Manually cherry-pick for #14428 --- files/image_config/sudoers/sudoers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/image_config/sudoers/sudoers b/files/image_config/sudoers/sudoers index 2a2c86295d02..0b8305af2ba7 100644 --- a/files/image_config/sudoers/sudoers +++ b/files/image_config/sudoers/sudoers @@ -40,7 +40,7 @@ Cmnd_Alias READ_ONLY_CMDS = /sbin/brctl show, \ /usr/bin/vtysh -c show bgp ipv[46] summary json, \ /usr/bin/vtysh -n [0-9] -c show version, \ /bin/ip netns identify [0-9]*, \ - /bin/cat /var/log/syslog*, \ + /bin/cat /var/log/syslog, /bin/cat /var/log/syslog.1 /var/log/syslog, /bin/cat /var/log/syslog.1, \ /usr/bin/tail -F /var/log/syslog Cmnd_Alias PASSWD_CMDS = /usr/bin/config tacacs passkey *, \