I am trying to help a user solve an issue with a bootable USB drive, but there seems to be a file whose ownership cannot be edited. I thought it would have been possible with:
sudo chown user:user ldlinux.sys
When that is executed, however, terminal gives this error:
Operation not permitted
The extended chat I had with the user can be found here.
Probably the file has the immutable flag set in its extended attributes:
To fix this, just run
sudo chattr -i file
: