89luca89 / 89luca89/distrobox

[Error] incorrect ownership for directories copied from /etc/skel

未關閉
#1,612 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Go
星號
13k
分支
541
平均合併
20 小時 47 分鐘
30 天內合併 PR
4

描述

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)

貢獻指南

開啟貢獻指南

研究方向

此 issue 與以正確的擁有權從 /etc/skel 複製檔案有關。查看 distrobox 的原始碼以了解 skel 的複製邏輯,該邏輯可能位於 shell script 中。檢查連結的先前 issue #1144 和 #1317,以了解修正與回歸的背景。透過建立一個包含位於子目錄中的 skel 檔案的容器進行測試,並驗證父目錄的擁有權。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
bash, shell
領域
cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
活躍
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。