Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Root can't write to files owned by others?
Date: Thu, 10 Mar 2022 06:50:36
Message-Id: t0c73b$17l4$1@ciao.gmane.io
In Reply to: [gentoo-user] Root can't write to files owned by others? by Dr Rainer Woitok
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

Replies

Subject Author
RE: [gentoo-user] Re: Root can't write to files owned by others? Laurence Perkins <lperkins@×××××××.net>
Re: [gentoo-user] Re: Root can't write to files owned by others? Grant Taylor <gtaylor@×××××××××××××××××××××.net>