From 6bdd90fbcd941a3f9d5bcd44a40e42e28f1690c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 27 Jan 2020 09:37:27 +0100 Subject: [PATCH] man: add "quick-help" to sysusers.d synopsis We have that in tmpfiles.d and it is makes looking up the syntax very easy. While at it, add an example for "r" and use the underscrore as prefix as described in the text. --- man/sysusers.d.xml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/man/sysusers.d.xml b/man/sysusers.d.xml index 72d8f62399..c632e8713e 100644 --- a/man/sysusers.d.xml +++ b/man/sysusers.d.xml @@ -25,6 +25,16 @@ /etc/sysusers.d/*.conf /run/sysusers.d/*.conf /usr/lib/sysusers.d/*.conf + + +#Type Name ID GECOS Home directory Shell +u user_name uid "User Description" /path/to/shell +u user_name uid:gid - - +u user_name /file/owned/by/user - - +g group_name gid "Group Description" +g group_name /file/owned/by/group - +m user_name group_name +r - lowest-highest @@ -81,11 +91,13 @@ #Type Name ID GECOS Home directory Shell u httpd 404 "HTTP User" -u authd /usr/bin/authd "Authorization user" +u _authd /usr/bin/authd "Authorization user" u postgres - "Postgresql Database" /var/lib/pgsql /usr/libexec/postgresdb g input - - -m authd input -u root 0 "Superuser" /root /bin/zsh +m _authd input +u root 0 "Superuser" /root /bin/zsh +r - 500-900 + Empty lines and lines beginning with the # character are ignored, and may be used for commenting. @@ -109,7 +121,7 @@ u root 0 "Superuser" /root /bin/zshg Create a system group of the specified name should it not exist yet. Note that u - implicitly create a matching group. The group will be + implicitly creates a matching group. The group will be created with no password set.