On 09/03/2022 20:28, Dr Rainer Woitok wrote:
until recently my system behaves sort of strangely:

    $ echo x | sudo tee /tmp/file
    Password:
    tee: /tmp/file: Permission denied
[...]
Since when can't root write to files  it doesn't own?   And not even, if
the file has write permission for everybody?

This is normal, at least when using systemd. To disable this behavior, you have to set:

  sysctl fs.protected_regular=0

But you should know what this means when it comes to security. See:

  https://www.spinics.net/lists/fedora-devel/msg252452.html


Reply via email to