Remove sudo capability for onap user for VF-C sfc of zte docker 86/103086/1 1.3.1
authoryangyan <yangyanyj@chinamobile.com>
Thu, 5 Mar 2020 03:26:05 +0000 (11:26 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Thu, 5 Mar 2020 03:27:01 +0000 (11:27 +0800)
Change-Id: I6b6a2709992b408f28d63470fcebfce2fe444f44
Issue-ID: VFC-1640
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
zte/sfc-driver/plugin-standalone/src/main/assembly/docker/docker-env-config.sh

index c6e7549..2ba1384 100644 (file)
@@ -19,10 +19,6 @@ install_sf(){
 add_user(){
 
        useradd onap
-       yum -y install sudo
-       chmod u+x /etc/sudoers
-       sed -i '/Same thing without a password/a\onap    ALL=(ALL:ALL) NOPASSWD:ALL' /etc/sudoers
-       chmod u-x /etc/sudoers
        chown onap:onap -R /service
 }