Fixing sudo issue.

This commit is contained in:
Alejandro Lembke Barrientos 2024-02-15 18:56:28 +00:00
parent ac7a82f0ca
commit 762ff44dc8
2 changed files with 3 additions and 3 deletions

View File

@ -16,8 +16,8 @@ eval "$(fixuid -q)"
if [ "${HOME_USER-}" ]; then
USER="$HOME_USER"
if [ "$HOME_USER" != "$(whoami)" ]; then
adduser --disabled-password --gecos "" ${HOME_USER}
echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
sudo adduser --disabled-password --gecos "" ${HOME_USER}
sudo echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
su - $HOME_USER
# Unfortunately we cannot change $HOME as we cannot move any bind mounts
# nor can we bind mount $HOME into a new home as that requires a privileged container.

View File

@ -1 +1 @@
2.0.6
2.0.7