Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Root can't write to files owned by others?
Date: Fri, 11 Mar 2022 08:13:27
Message-Id: 11939312.O9o76ZdvQC@lenovo.localdomain
In Reply to: [gentoo-user] Re: Root can't write to files owned by others? by Nikos Chantziaras
1 On Friday, 11 March 2022 03:04:47 GMT Nikos Chantziaras wrote:
2 > On 10/03/2022 20:44, Michael wrote:
3 > > ~ # sysctl -a | grep fs.protected_regular
4 > > fs.protected_regular = 1
5 >
6 > To check the current value of a setting, you can just run:
7 >
8 > sysctl fs.protected_regular
9 >
10 > No grep or root needed.
11
12 ~ $ sysctl fs.protected_regular
13 sysctl: permission denied on key 'fs.protected_regular'
14
15 You're right about grep, but not about root. Anyway, I can confirm on kernel
16 5.15.23 fs.protected_regular is set to 0, while on 5.15.26 is it flipped to 1.

Attachments

File name MIME type
signature.asc application/pgp-signature