[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
a6295f82be
commit
ddbfe0631d
@ -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 *, \
|
||||
|
Loading…
Reference in New Issue
Block a user