Skip to content

Commit e5c6c2f

Browse files
authored
Improve sudo cat command for RO user. (#14428) (#14437)
Improve sudo cat command for RO user. Manually cherry-pick for #14428
1 parent a13d460 commit e5c6c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/image_config/sudoers/sudoers

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Cmnd_Alias READ_ONLY_CMDS = /sbin/brctl show, \
4040
/usr/bin/vtysh -c show bgp ipv[46] summary json, \
4141
/usr/bin/vtysh -n [0-9] -c show version, \
4242
/bin/ip netns identify [0-9]*, \
43-
/bin/cat /var/log/syslog*, \
43+
/bin/cat /var/log/syslog, /bin/cat /var/log/syslog.1 /var/log/syslog, /bin/cat /var/log/syslog.1, \
4444
/usr/bin/tail -F /var/log/syslog
4545

4646
Cmnd_Alias PASSWD_CMDS = /usr/bin/config tacacs passkey *, \

0 commit comments

Comments
 (0)