I am running this command as root:
# sysctl -w fs.file-nr=131072
error: permission denied on key 'fs.file-nr'
Same issue when I edit /etc/sysctl.conf
and try sysctl -p
. Any reason why I cannot edit this value?
I am on CentOS 6.5
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityfs.file-nr
represents the number of allocated file handles, the number of allocated but unused ones, and the maximum number of file handles, which is read-only
.
However the third field can be modified through fs.file-max
instead.
# sysctl -w fs.file-max=131072
lsattr filename