さまざまなタイプのulimit構成の説明

さまざまなタイプのulimit構成の説明

複数のulimits(システムはrhel 7.5)を設定していますが、これについては何も見つかりませんtype。内部的には/etc/security/limits.conf2つの値を取得できますが、構成例ではファイルに3つの値が含まれています。

  1. 柔らかい
  2. 硬い
  3. - (ダッシュ)

以下のファイルの例では@学生種類があります。-

いつ質問する- (ダッシュ)のためのか。

    ....
    #<type> can have the two values:
    #        - "soft" for enforcing the soft limits
    #        - "hard" for enforcing hard limits
    .....
    #<domain>      <type>  <item>         <value>
    #*               soft    core            0
    #*               hard    rss             10000
    #@student        hard    nproc           20
    #@faculty        soft    nproc           20
    #@faculty        hard    nproc           50
    #ftp             hard    nproc           0
    #@student        -       maxlogins       4
    .....

ベストアンサー1

答えは以下にあります。人数制限.conf

<type>
hard
for enforcing hard resource limits. These limits are set by the superuser and enforced by the Kernel. The user cannot raise his requirement of system resources above such values.
soft
for enforcing soft resource limits. These limits are ones that the user can move up or down within the permitted range by any pre-existing hard limits. The values specified with this token can be thought of as default values, for normal system usage.
-
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. .

おすすめ記事