On Tue, Jul 09, 2024 at 13:20:04 +0200, Thomas Schmitt wrote: > Patrice Duroux wrote: > > option: --preserve=mode > > cp: preserving permissions for '/tmp/test.sh': Operation not supported > > exitcode: 1 > > [...] > > It says that the operation is not supported but still the mode of the > > copy is ok. > > Maybe it sees ACL at the source file and your /tmp filesystem cannot > do ACL ?
I was thinking something similar, but the "ls -l ./test.sh" did not show any markup indicating ACL. I would have expected to see a punctuation character after the permissions (. or + or something) if that were the case. > Try with setfacl(1) whether files in the /tmp directory accept non-trivial > ACLs, like > > touch /tmp/x > setfacl -m u:1234:w /tmp/x > > The inquiry by > > getfacl /tmp/x > > should then report among others a line: > > user:1234:-w- It certainly doesn't hurt to check. More information is better in this case. She may need to install the "acl" package to get these commands. It's not installed by default, at least in bookworm.