Skip to content

Commit

Permalink
[201811]: Improve sudo cat command for RO user. (#14428) (#14438)
Browse files Browse the repository at this point in the history
Improve sudo cat command for RO user.

RO user can use sudo command show none syslog files.
  • Loading branch information
liuh-80 authored Apr 12, 2023
1 parent ef76e82 commit 273ca35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/image_config/sudoers/sudoers
Original file line number Diff line number Diff line change
Expand Up @@ -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 *, \
Expand Down

0 comments on commit 273ca35

Please sign in to comment.