Skip to content

Commit

Permalink
Improve sudo cat command for RO user. (sonic-net#14428)
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.

Improve sudo cat command for RO user.

Pass all UT.
Manually check fixed code work correctly.

Improve sudo cat command for RO user.
  • Loading branch information
liuh-80 committed Mar 28, 2023
1 parent 9b3d8b7 commit a40b5c6
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 @@ -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 *, \
Expand Down

0 comments on commit a40b5c6

Please sign in to comment.