LLI Wiki — My Digital Knowledge Base

Linux (CentOS): access denied in /proc, disabling fs.protected_symlinks

Temporarily disable the kernel symlink protection with sysctl.

On CentOS, an access-denied error in /proc/ (for example when following a symlink in a sticky-bit directory) can come from the symlink protection of the kernel. The note disables it like this:

sudo sysctl -w fs.protected_symlinks=0

Notes

This protection improves security: only disable it once the cause is clearly identified, and set it back to 1 afterwards if possible.

Mastodon LLIMastodon SocialFosstodon