The
following sample limits.conf file restricts all users, and then sets
different limits for others afterwards. This sample assumes that you
set handles to 8192 in step 4.
* soft nofile 1024
* hard nofile 2048
root soft nofile 4096
root hard nofile 8192
user1 soft nofile 2048
user1 hard nofile 2048
Note that the
* in
the preceding example sets the limits for all users first. These limits
are lower than the limits that follow. The root user has a higher
number of allowable handles open, while number available to user1
is between the two. Make sure that you read and understand the documentation
contained in the limits.conf file before making changes.