[Error] incorrect ownership for directories copied from /etc/skel
- Linguagem predominante
- Go
- Estrelas
- 13k
- Forks
- 541
- Merge médio
- 20h 47min
- PRs com merge (30d)
- 4
Descrição
Please, before opening a bug:
- make sure you've read the documentation.
- Ensure there isn't already an open issue about this.
- Ensure there isn't already a closed/resolved issue about this.
**Describe the bug**
When you have a file instead of subdirectory of skel, eg /etc/skel/.config/foobar, the file itself (foobar) gets copied with correct ownership (1000:1000), but its parent folder (.config) is owned by root, meaning that other program's can't write to it.
**To Reproduce**
Use any image which includes files in subdirectories of /etc/skel
**Expected behavior**
The directory is owned by 1000:1000
**Logs**
Run the commands with `--verbose` and post the log here as a file upload
Attach also the output of `podman logs` or `docker logs`, possibly with `--latest` flag
**Desktop (please complete the following information):**
- Are you using podman, docker or lilipod? podman
- Which version or podman, docker or lilipod? 5.2.3
- Which version of distrobox? 1.18.0.1
- Which host distribution? Bluefin (Fedora Silverblue)
- How did you install distrobox? Bluefin provided
**Additional context**
Seems that this issue occured earlier https://github.com/89luca89/distrobox/issues/1144 and got fixed, then got another implementation after https://github.com/89luca89/distrobox/issues/1317 and the same issue shows up again.
[distrobox.log](https://github.com/user-attachments/files/17702356/distrobox.log)
Guia de contribuição
Direção de pesquisa
A issue está relacionada à cópia de arquivos de /etc/skel com a propriedade correta. Verifique o código-fonte do distrobox para encontrar a lógica de cópia de skel, provavelmente em um script shell. Consulte as issues anteriores vinculadas #1144 e #1317 para obter contexto sobre o fix e a regressão. Teste criando um container com um arquivo skel em um subdiretório e verifique a propriedade do diretório pai.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- bash, shell
- Domínio
- cli
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Ativa
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 65/100