2

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

2
  • What user are you using, root? Check if that file is immutable with lsattr filename Dec 18, 2013 at 3:12
  • Yes, I am root. Where would I find fs.file-nr?
    – Jason
    Dec 18, 2013 at 3:28

1 Answer 1

2

fs.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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .