To set the runtime status of the fs.protected_hardlinks
kernel parameter, run the following command: $ sudo sysctl -w fs.protected_hardlinks=1
To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d
: fs.protected_hardlinks = 1