[Error] Directories in home directory have root owner
- Langage dominant
- Go
- Étoiles
- 13k
- Forks
- 541
- Merge moyen
- 20 h 47 min
- PR mergées (30 j)
- 4
Description
**Describe the bug**
When running this script,
```sh
#!/usr/bin/env sh
mkdir testbox
distrobox create \
--yes \
--image quay.io/toolbx/arch-toolbox:latest \
--name testbox \
--home "$PWD/testbox" \
--init \
--additional-packages "systemd" \
--verbose &> create-log.txt
distrobox enter --verbose testbox -- ls testbox/.config &> enter-log.txt
```
the bottom command outputs this
```
ls: cannot open directory 'testbox/.config': Permission denied
```
because these directories have root as their user (instead of me).
```
drwx------ 1 root root 8 Mar 7 03:54 .cache
drwx------ 1 root root 8 Mar 7 03:54 .config
drwx------ 1 root root 10 Mar 7 03:54 .local
```
**To Reproduce**
Run the script above.
**Expected behavior**
The directories listed above should have a non-root user.
**Logs**
[create-log.txt](https://github.com/user-attachments/files/25811044/create-log.txt)
[enter-log.txt](https://github.com/user-attachments/files/25811043/enter-log.txt)
**Desktop (please complete the following information):**
- Are you using podman, docker or lilipod? **Podman**
- Which version or podman, docker or lilipod? **5.7.1**
- Which version of distrobox? **1.8.2.3**
- Which host distribution? **Bazzite DX Nvidia (no layering)**
- How did you install distrobox? **Came with distro**
**Additional context**
I tried this with Bluefin DX (no Nvidia) with Distrobox version 1.8.2.4, and it has this same issue.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.