Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

Potential permissions issues with overlayfs [CANCELLED]


walterw

Question

Hi all, I suspect I am having permissions problems with overlayfs.

1. created a file (as root)

2. ls -l <file>

3. confirmed the file is owned by root

4. ran unshare -r <some executable> - output indicates file as being owned by nobody or 65534 even though ls -l confirms it is owned by root

5. ls -l <file> still shows file is owned by root

 

Lastly, I confirmed in /rw/<path-to-file> that the permissions are the same as the file I created.  Why is unshare seeing different permissions and how do I see what it sees?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I am sorry @walterw to paste you this instead of an answer.

 

Would you be so kind and give more details.

Best even steps to reproduce. You are mentioning overlayfs in your topis, but in your question there is no mention about overlayfs. Could you please add more info, steps to reproduce and expected behaviour.

Thank you

Link to comment
Share on other sites

  • 0

I don't know if I understand it correctly, but this is what I am getting:

root@robor ~ # ❯❯❯ whoami
root
root@robor ~ # ❯❯❯ touch test-unshare
root@robor ~ # ❯❯❯ ls -alF test-unshare
-rw-r--r-- 1 root root 4 Dec 21 22:54 test-unshare
root@robor ~ # ❯❯❯ unshare -r ls -alF test-unshare
-rw-r--r-- 1 root root 4 Dec 21 22:54 test-unshare

 

Link to comment
Share on other sites

×
×
  • Create New...