Skip to content

Commit 34fa01d

Browse files
arlakshmderan1980
authored andcommitted
[baseimage]: add docker ps to the sudoer file (sonic-net#6604)
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 <[email protected]>
1 parent e99a7fb commit 34fa01d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

files/image_config/sudoers/sudoers

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Cmnd_Alias READ_ONLY_CMDS = /bin/cat /var/log/syslog*, \
2525
/usr/bin/docker exec bgp cat /etc/quagga/bgpd.conf, \
2626
/usr/bin/docker images *, \
2727
/usr/bin/docker ps *, \
28+
/usr/bin/docker ps, \
2829
/usr/bin/lldpctl, \
2930
/usr/bin/sensors, \
3031
/usr/bin/tail -F /var/log/syslog, \

0 commit comments

Comments
 (0)