You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a somewhat complex setup (see reproduction section), files that should be owned by root are for some reason start to be owned by the user in the distrobox containers at some point:
distrobox enter fedora_d
ls -la /etc/ | grep sudoers
-r--r----- 1 jpfau jpfau 4375 Dec 24 20:07 sudoers
To Reproduce
Setup
I use a docker-compose setup based on linuxerver-openssh (alpine linux). I use this configuration:
Here /var/mnt/ssd/openssh is where podman (run inside the container) will place its storage. /var/home/core/config/openssh/init contains a custom script to install distrobox and /var/home/core/config/openssh/pubkeys contains an SSH public key so that we can connect to the container. Adjust these paths to match your local setup.
distrobox.sh should be placed in /var/home/core/config/openssh/init to install distrobox on container creation:
Describe the bug
In a somewhat complex setup (see reproduction section), files that should be owned by root are for some reason start to be owned by the user in the distrobox containers at some point:
To Reproduce
Setup
I use a docker-compose setup based on linuxerver-openssh (alpine linux). I use this configuration:
docker-compose.yml
:Here
/var/mnt/ssd/openssh
is where podman (run inside the container) will place its storage./var/home/core/config/openssh/init
contains a custom script to install distrobox and/var/home/core/config/openssh/pubkeys
contains an SSH public key so that we can connect to the container. Adjust these paths to match your local setup.distrobox.sh
should be placed in/var/home/core/config/openssh/init
to install distrobox on container creation:Place a SSH public key into
/var/home/core/config/openssh/pubkeys/mykey.pub
so you can log in.Reproducing the issue
First, start the container:
Connect into the container using SSH. Then:
Stop the docker-compose command (CTRL+C). Then destroy the container and recreate it.
Connect into the container using SSH again. Then:
But when using distrobox:
distrobox enter fedora_d ls -la /etc/ | grep sudoers -r--r----- 1 jpfau jpfau 4375 Dec 24 20:07 sudoers
Expected behavior
Files in /etc should still be owned by root.
Logs
distrobox_enter.log
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: