1 |
On 09/03/2022 20:28, Dr Rainer Woitok wrote: |
2 |
> until recently my system behaves sort of strangely: |
3 |
> |
4 |
> $ echo x | sudo tee /tmp/file |
5 |
> Password: |
6 |
> tee: /tmp/file: Permission denied |
7 |
> [...] |
8 |
> |
9 |
> Since when can't root write to files it doesn't own? And not even, if |
10 |
> the file has write permission for everybody? |
11 |
|
12 |
This is normal, at least when using systemd. To disable this behavior, |
13 |
you have to set: |
14 |
|
15 |
sysctl fs.protected_regular=0 |
16 |
|
17 |
But you should know what this means when it comes to security. See: |
18 |
|
19 |
https://www.spinics.net/lists/fedora-devel/msg252452.html |