Improve sudo cat command for RO user. (#14428) (#14437)

Improve sudo cat command for RO user.
Manually cherry-pick for #14428
This commit is contained in:
Hua Liu 2023-04-05 15:29:58 -07:00 committed by GitHub
parent a13d460bbb
commit e5c6c2f9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 -c show bgp ipv[46] summary json, \
/usr/bin/vtysh -n [0-9] -c show version, \ /usr/bin/vtysh -n [0-9] -c show version, \
/bin/ip netns identify [0-9]*, \ /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 /usr/bin/tail -F /var/log/syslog
Cmnd_Alias PASSWD_CMDS = /usr/bin/config tacacs passkey *, \ Cmnd_Alias PASSWD_CMDS = /usr/bin/config tacacs passkey *, \