1

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
Eliah Kagan
  • 117,780

1 Answers1

2

/etc is a system directory that a users account will not (or should not) have access to.

You need to use sudo vi /etc/security/limits.conf was required, ie. the use of sudo elevates privileges for the command following the sudo.

guiverc
  • 30,396