From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep
Unlock this course with a free trial
Join today to access over 24,600 courses taught by industry experts.
Configure user resource limits - Linux Tutorial
From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep
Configure user resource limits
- [Narrator] Now let's look at managing user resource limits in Linux. When we have a lot of users logging into the system, we may want to impose limits on what resources they can use. That way we can ensure, for example, that a user does not use 80% of the CPU, leaving very little to spare for others. Now to set such a limit, we can edit this file and it's located at etc/security/limits.conf. We'll see a lot of comments in that file explaining how we should use it, the syntax required, and so on. Now if we move further down in the file, we'll see the syntax for setting a limit, and we can observe that the syntax is <domain>, <type>, <item>, and <value>. Let's break this down into easy-to-understand parts, first, the domain. Now what can we specify here? Usually one of these three things, a username. In this case, we simply type the name of the user such as trinity, or we can use a group name. To set a limit for everyone in the developers' group, we just add an @ sign in front of its…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Create, delete, and modify local user accounts8m 56s
-
(Locked)
Create, delete, and modify local groups and group memberships5m 15s
-
(Locked)
Manage system-wide environment profiles3m 57s
-
(Locked)
Manage template user environment1m 29s
-
(Locked)
Configure user resource limits6m 3s
-
(Locked)
Manage user privileges5m 12s
-
(Locked)
Manage access to root account2m 37s
-
(Locked)
Configure the system to use LDAP user and group accounts13m 57s
-
(Locked)
-
-
-