Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/common/scripts/generate_container_user
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Set current user in nss_wrapper
USER=${USER:-default}
USER_ID=$(id -u)
GROUP_ID=$(id -g)
echo "USER_ID: $USER_ID, GROUP_ID: $GROUP_ID"
echo "USER: $USER, USER_ID: $USER_ID, GROUP_ID: $GROUP_ID"

if [ x"$USER_ID" != x"0" ]; then

Expand All @@ -10,7 +11,7 @@ if [ x"$USER_ID" != x"0" ]; then

cat /etc/passwd > $NSS_WRAPPER_PASSWD

echo "default:x:${USER_ID}:${GROUP_ID}:Default Application User:${HOME}:/bin/bash" >> $NSS_WRAPPER_PASSWD
echo "${USER}:x:${USER_ID}:${GROUP_ID}:Default Application User:${HOME}:/bin/bash" >> $NSS_WRAPPER_PASSWD

export NSS_WRAPPER_PASSWD
export NSS_WRAPPER_GROUP
Expand Down