[baseimage]: add docker ps to the sudoer file (#6604)
fixes Azure/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()](8a1109ed30/show/main.py (L54)
) therefore all the CLI commands are failing.
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
This commit is contained in:
parent
e623c903bb
commit
b5225407ef
@ -25,6 +25,7 @@ Cmnd_Alias READ_ONLY_CMDS = /bin/cat /var/log/syslog*, \
|
||||
/usr/bin/docker exec bgp cat /etc/quagga/bgpd.conf, \
|
||||
/usr/bin/docker images *, \
|
||||
/usr/bin/docker ps *, \
|
||||
/usr/bin/docker ps, \
|
||||
/usr/bin/lldpctl, \
|
||||
/usr/bin/sensors, \
|
||||
/usr/bin/tail -F /var/log/syslog, \
|
||||
|
Loading…
Reference in New Issue
Block a user