We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1ddfa4 commit 918a48fCopy full SHA for 918a48f
docker/build_scripts/install-runtime-packages.sh
@@ -138,6 +138,15 @@ if [ "${BASE_POLICY}" == "manylinux" ]; then
138
echo "/usr/local/lib" > /etc/ld.so.conf.d/00-manylinux.conf
139
ldconfig
140
else
141
+ if [ ! -f /etc/pam.d/chsh ]; then
142
+ cat <<EOF > /etc/pam.d/chsh
143
+#%PAM-1.0
144
+auth sufficient pam_rootok.so
145
+auth sufficient pam_shells.so
146
+account required pam_permit.so
147
+password include base-password
148
+EOF
149
+ fi
150
# set the default shell to bash
151
chsh -s /bin/bash root
152
useradd -D -s /bin/bash
0 commit comments