Users:
root
userA
- the normal owner of the fileuserB
- the user that wants to write to the file
The file:
- Let's say I have a basic text file:
/tmp/file
- Ownership:
chown userA:groupA /tmp/file
- Permissions are group + world writable:
chmod 666 /tmp/file
The problem:
userB
can't write to it via the world/everyone permissionuserB
also can't even write to it when they're in thegroupA
group- I'm only seeing this on a new Debian 11 host.
- There's no issue on my Debian 10 hosts.
What does work:
- If I
chown root:root /tmp/file
- no problem- ...this is the weirdest part to me. If this is some new security policy or something, then why is this allowed?
- If I move the file outside
/tmp
- no problem
What's going on here?
Has something changed between Debian 10 -> 11?
There's nothing non-default about my /tmp
dir. It's not a separate partition or anything, it's just the default subdir setup that Debian comes with.