I'm trying to increase the open files limit for Ubuntu 16.04 version by using vi /etc/security/limits.conf Then I add two lines like:
#* soft nofile 4096
#* hard nofile 4096
But when I use :x to save and exit I get E45: 'readonly' option is set (add ! to override) and it doesn't exit.
When I use nano etc/security/limits.conf to modify it I get:
Error writing /etc/security/limits.conf: Permission denied