userA- the normal owner of the file
userB- the user that wants to write to the file
- Let's say I have a basic text file:
chown userA:groupA /tmp/file
- Permissions are group + world writable:
chmod 666 /tmp/file
userBcan't write to it via the world/everyone permission
userBalso can't even write to it when they're in the
- 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.