From e4245133f4bae0b5bc394b1a90b710dcee862751 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Thu, 4 Sep 2025 14:00:02 +0530 Subject: [PATCH] fix (project-clone) : update user_setup script to modify `/etc/passwd` permissions/ownership Update user_setup script to not make `/etc/passwd` group writable Signed-off-by: Rohan Kumar --- build/bin/user_setup | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/bin/user_setup b/build/bin/user_setup index 1e36064cb..2616a7538 100755 --- a/build/bin/user_setup +++ b/build/bin/user_setup @@ -6,8 +6,7 @@ mkdir -p ${HOME} chown ${USER_UID}:0 ${HOME} chmod ug+rwx ${HOME} -# runtime user will need to be able to self-insert in /etc/passwd -chmod g+rw /etc/passwd +chmod g-w /etc/passwd # no need for this script to remain in the image after running rm $0