%EC%9D%98%20%EC%9D%98%EB%AF%B8.png)
type
나는 문서에서 다음 분야에 대한 다음 내용을 보았습니다 /etc/security/limits.conf
.
-
for enforcing both soft and hard resource limits together.
Note, if you specify a type of '-' but neglect to supply the
item and value fields then the module will never enforce any
limits on the specified user/group etc. .
매뉴얼 페이지에는 다음 예제가 있습니다:
* soft core 0
* hard nofile 512
@student hard nproc 20
@faculty soft nproc 20
@faculty hard nproc 50
ftp hard nproc 0
@student - maxlogins 4
그룹 구성에는 as 유형 @student
이 있습니다 -
. 이런 맥락에서 그것은 무엇을 의미합니까?
답변1
다른 매개변수는 커널에 의해 시행되는 프로세스 제한입니다. 소프트 제한이 실제로 적용되지만 사용자(또는 프로그램)는 이를 하드 제한까지 높일 수 있습니다. 하드 제한은 올릴 수 없으며(루트 제외) 낮출 수만 있습니다. 따라서 때로는 하나를 별도로 설정하거나 둘 다를 설정하는 것이 유용할 수 있습니다.
그러나 Maxlogins는 rlimit가 아닙니다. 커널은 로그인을 추적하지 않습니다. 로그인 제한은 utmp에서 세션 항목을 계산하여 pam_limits 자체에 의해 시행됩니다. 따라서 소프트/하드 분할이 없습니다.