summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2023-10-20 15:22:35 +0200
committerAlejandro Colomar <alx@kernel.org>2023-10-30 00:00:28 +0100
commit11071522a22654bc917c74312df59e18b7cd97e2 (patch)
tree3ff1f30f7ddfd2d005e97314309821ec12198844
parent909036d7140433c9b70558b93f85a6030a51ee28 (diff)
man: document --prefix option in chage, chpasswd and passwd
Support for `--prefix` was added in https://github.com/shadow-maint/shadow/pull/714 and is available since shadow 4.14.0. Close https://github.com/shadow-maint/shadow/issues/822 Cherry-picked-from: 01f6258df744 ("man: document --prefix option in chage, chpasswd and passwd") Link: <https://github.com/shadow-maint/shadow/pull/823> Suggested-by: Michael Vetter <jubalh@iodoru.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/chage.1.xml15
-rw-r--r--man/chpasswd.8.xml15
-rw-r--r--man/passwd.1.xml15
3 files changed, 45 insertions, 0 deletions
diff --git a/man/chage.1.xml b/man/chage.1.xml
index 055c1ed6..060409b8 100644
--- a/man/chage.1.xml
+++ b/man/chage.1.xml
@@ -200,6 +200,21 @@
</varlistentry>
<varlistentry>
<term>
+ <option>-P</option>, <option>--prefix</option>&nbsp;<replaceable>PREFIX_DIR</replaceable>
+ </term>
+ <listitem>
+ <para>
+ Apply changes to configuration files under the root filesystem
+ found under the directory <replaceable>PREFIX_DIR</replaceable>.
+ This option does not chroot and is intended for preparing a cross-compilation
+ target. Some limitations: NIS and LDAP users/groups are
+ not verified. PAM authentication is using the host files.
+ No SELINUX support.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
<option>-W</option>, <option>--warndays</option>&nbsp;<replaceable>WARN_DAYS</replaceable>
</term>
<listitem>
diff --git a/man/chpasswd.8.xml b/man/chpasswd.8.xml
index 6353419c..1984573a 100644
--- a/man/chpasswd.8.xml
+++ b/man/chpasswd.8.xml
@@ -173,6 +173,21 @@
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>
+ <option>-P</option>, <option>--prefix</option>&nbsp;<replaceable>PREFIX_DIR</replaceable>
+ </term>
+ <listitem>
+ <para>
+ Apply changes to configuration files under the root filesystem
+ found under the directory <replaceable>PREFIX_DIR</replaceable>.
+ This option does not chroot and is intended for preparing a cross-compilation
+ target. Some limitations: NIS and LDAP users/groups are
+ not verified. PAM authentication is using the host files.
+ No SELINUX support.
+ </para>
+ </listitem>
+ </varlistentry>
<varlistentry condition="sha_crypt">
<term>
<option>-s</option>, <option>--sha-rounds</option>&nbsp;<replaceable>ROUNDS</replaceable>
diff --git a/man/passwd.1.xml b/man/passwd.1.xml
index 5491ded6..5fbfa6d1 100644
--- a/man/passwd.1.xml
+++ b/man/passwd.1.xml
@@ -282,6 +282,21 @@
</varlistentry>
<varlistentry>
<term>
+ <option>-P</option>, <option>--prefix</option>&nbsp;<replaceable>PREFIX_DIR</replaceable>
+ </term>
+ <listitem>
+ <para>
+ Apply changes to configuration files under the root filesystem
+ found under the directory <replaceable>PREFIX_DIR</replaceable>.
+ This option does not chroot and is intended for preparing a cross-compilation
+ target. Some limitations: NIS and LDAP users/groups are
+ not verified. PAM authentication is using the host files.
+ No SELINUX support.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
<option>-S</option>, <option>--status</option>
</term>
<listitem>