Remove sudo capability for onap user for VF-C ems docker 84/103084/2 1.3.1
authoryangyan <yangyanyj@chinamobile.com>
Thu, 5 Mar 2020 03:15:39 +0000 (11:15 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Thu, 5 Mar 2020 03:17:18 +0000 (11:17 +0800)
Change-Id: I5f327ea36125bbed257998c644cb1af4ef29b16e
Issue-ID: VFC-1640
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
ems/microservice-standalone/src/main/assembly/docker/docker-env-config.sh

index 9cfdeea..c3a16c3 100644 (file)
@@ -22,11 +22,9 @@ 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
+       chmod g+s /service
+       setfacl -d --set u:onap:rwx /service
 }
 
 clean_sf_cache(){