4 # ensure $HOME exists and is accessible by group 0 (we don't know what the runtime UID will be)
6 chown ${USER_UID}:0 ${HOME}
9 # runtime user will need to be able to self-insert in /etc/passwd
10 chmod g+rw /etc/passwd
12 # no need for this script to remain in the image after running