Skip to content

Commit 6357888

Browse files
authored
fix (project-clone) : update user_setup script to modify /etc/passwd permissions/ownership (#1499)
Update user_setup script to not make `/etc/passwd` group writable Signed-off-by: Rohan Kumar <[email protected]>
1 parent f62e1c3 commit 6357888

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build/bin/user_setup

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ mkdir -p ${HOME}
66
chown ${USER_UID}:0 ${HOME}
77
chmod ug+rwx ${HOME}
88

9-
# runtime user will need to be able to self-insert in /etc/passwd
10-
chmod g+rw /etc/passwd
9+
chmod g-w /etc/passwd
1110

1211
# no need for this script to remain in the image after running
1312
rm $0

0 commit comments

Comments
 (0)