Linux – assigning write permission to /proc/sys/vm

file-permissionslinux

I asked my sysadmin if he can do the following:

echo 0 > /proc/sys/vm/zone_reclaim_mode

He came back to me saying that he doesn't have the necessary permissions (as root) to create a file in that directory (vm) and that directory doesn't have write permissions (only has xr) and also that he cannot change the permissions. He tried adding write permission to vm directory but that operation failed.

How can we add write permissions to that directory and create the required file?

This seems to be related to this?

Thank you in advance.

PS: Posted this on Serverfault as well. Thanks to the admin for moving the post, but I have already made a post (instead of waiting for a week) on serverfault as indicated in the link here.

Best Answer

Let the admin set vm.zone_reclaim_mode = 0 in /etc/sysctl.conf, this way it will be set on every reboot. Then he should run sysctl -p to activate the new setting for the running system.