Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   sysusers.d    ( 5 )

декларативное распределение пользователей и групп системы (Declarative allocation of system users and groups)

Технические характеристики (Specifiers)

Specifiers can be used in the "Name", "ID", "GECOS", "Home
       directory", and "Shell" fields. An unknown or unresolvable
       specifier is treated as invalid configuration. The following
       expansions are understood:

Table 1. Specifiers available ┌──────────┬──────────────────┬────────────────────────┐ │Specifier Meaning Details │ ├──────────┼──────────────────┼────────────────────────┤ │"%a" │ Architecture │ A short string │ │ │ │ identifying the │ │ │ │ architecture of │ │ │ │ the local system. │ │ │ │ A string such as │ │ │ │ x86, x86-64 or │ │ │ │ arm64. See the │ │ │ │ architectures │ │ │ │ defined for │ │ │ │ ConditionArchitecture= │ │ │ │ in systemd.unit(5) │ │ │ │ for a full list. │ ├──────────┼──────────────────┼────────────────────────┤ │"%A" │ Operating system │ The operating system │ │ │ image version │ image version │ │ │ │ identifier of the │ │ │ │ running system, as │ │ │ │ read from the │ │ │ │ IMAGE_VERSION= field │ │ │ │ of /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%b" │ Boot ID │ The boot ID of the │ │ │ │ running system, │ │ │ │ formatted as string. │ │ │ │ See random(4) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%B" │ Operating system │ The operating system │ │ │ build ID │ build identifier of │ │ │ │ the running system, as │ │ │ │ read from the │ │ │ │ BUILD_ID= field of │ │ │ │ /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%H" │ Host name │ The hostname of the │ │ │ │ running system. │ ├──────────┼──────────────────┼────────────────────────┤ │"%l" │ Short host name │ The hostname of the │ │ │ │ running system, │ │ │ │ truncated at the first │ │ │ │ dot to remove any │ │ │ │ domain component. │ ├──────────┼──────────────────┼────────────────────────┤ │"%m" │ Machine ID │ The machine ID of the │ │ │ │ running system, │ │ │ │ formatted as string. │ │ │ │ See machine-id(5) for │ │ │ │ more information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%M" │ Operating system │ The operating system │ │ │ image identifier │ image identifier of │ │ │ │ the running system, as │ │ │ │ read from the │ │ │ │ IMAGE_ID= field of │ │ │ │ /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%o" │ Operating system │ The operating system │ │ │ ID │ identifier of the │ │ │ │ running system, as │ │ │ │ read from the ID= │ │ │ │ field of │ │ │ │ /etc/os-release. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%T" │ Directory for │ This is either /tmp or │ │ │ temporary files │ the path "$TMPDIR", │ │ │ │ "$TEMP" or "$TMP" are │ │ │ │ set to. (Note that the │ │ │ │ directory may be │ │ │ │ specified without a │ │ │ │ trailing slash.) │ ├──────────┼──────────────────┼────────────────────────┤ │"%v" │ Kernel release │ Identical to uname -r │ │ │ │ output. │ ├──────────┼──────────────────┼────────────────────────┤ │"%V" │ Directory for │ This is either │ │ │ larger and │ /var/tmp or the path │ │ │ persistent │ "$TMPDIR", "$TEMP" or │ │ │ temporary files │ "$TMP" are set to. │ │ │ │ (Note that the │ │ │ │ directory may be │ │ │ │ specified without a │ │ │ │ trailing slash.) │ ├──────────┼──────────────────┼────────────────────────┤ │"%w" │ Operating system │ The operating system │ │ │ version ID │ version identifier of │ │ │ │ the running system, as │ │ │ │ read from the │ │ │ │ VERSION_ID= field of │ │ │ │ /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%W" │ Operating system │ The operating system │ │ │ variant ID │ variant identifier of │ │ │ │ the running system, as │ │ │ │ read from the │ │ │ │ VARIANT_ID= field of │ │ │ │ /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%%" │ Single percent │ Use "%%" in place of │ │ │ sign │ "%" to specify a │ │ │ │ single percent sign. │ └──────────┴──────────────────┴────────────────────────┘