[201811]: Improve sudo cat command for RO user. (#14428) (#14438)

Improve sudo cat command for RO user.

RO user can use sudo command show none syslog files.
This commit is contained in:
Hua Liu 2023-04-13 00:12:02 +08:00 committed by GitHub
parent ef76e82e40
commit 273ca3555a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ Cmnd_Alias READ_ONLY_CMDS = /sbin/brctl show, \
/usr/bin/vtysh -c show version, \
/usr/bin/vtysh -c show bgp ipv[46] summary json, \
/usr/bin/vtysh -n [0-9] -c show version, \
/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 *, \