From the course: Cert Prep LPIC-1 Exam 102 (Version 5.0)

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Set up limits on users

Set up limits on users - Linux Tutorial

From the course: Cert Prep LPIC-1 Exam 102 (Version 5.0)

Start my 1-month free trial

Set up limits on users

- Linux has the ability to limit the amount of system resources available to user processes. These limits include the number of open files. The maximum size of user created files. How much memory is used, and more. We can change these limits using the ulimit command, but they revert back to defaults on the next reboot unless we keep them in the etc security limits.com file. Let's take a look at this file. In a terminal, type in vi /etc/security/limits.com and hit enter. Now, scroll to the bottom. In vi, you can go to the bottom by pressing the uppercase g when not in insert mode. Here, we have some example entries. We see that we have four columns. Domain, Type, Item, and Value. Domain can be a user, group, or wildcard. Type can be one of two types, soft or hard. These are the two types of limits that we can have. The soft limit is the one that we use to restrict users. The hard limit has to be set by the admin user,…

Contents