Skip to content

Commit

Permalink
[baseimage]: add docker ps to the sudoer file (#6604)
Browse files Browse the repository at this point in the history
fixes sonic-net/sonic-utilities#1389

With the recent changes in sudoer files. The  show commands fails for the read-only users.
The problem here is the 'docker ps' is failing in the function [get_routing_stack()](https://github.com/Azure/sonic-utilities/blob/8a1109ed30576f0287fcd98a4349617f7fb55700/show/main.py#L54) therefore all the CLI commands are failing.

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
  • Loading branch information
arlakshm authored and lguohan committed Jan 29, 2021
1 parent a6295f8 commit ddbfe06
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 @@ -25,7 +25,7 @@ Cmnd_Alias READ_ONLY_CMDS = /sbin/brctl show, \
/usr/bin/docker exec snmp cat /etc/snmp/snmpd.conf, \
/usr/bin/docker exec bgp cat /etc/quagga/bgpd.conf, \
/usr/bin/docker ps *, \
/usr/bin/generate_dump, \
/usr/bin/docker ps, \
/usr/bin/lldpctl, \
/usr/bin/lldpshow, \
/usr/bin/psuutil *, \
Expand Down

0 comments on commit ddbfe06

Please sign in to comment.