]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
man/: Consistently express dates in standard format
authorAlejandro Colomar <alx@kernel.org>
Wed, 19 Feb 2025 17:46:18 +0000 (18:46 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Wed, 30 Apr 2025 08:03:11 +0000 (10:03 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/chage.1.xml
man/passwd.1.xml
man/shadow.5.xml

index b58011185bfbabb4c580b1bfac31b226571d0330..d7bf56ac820daef92e6295a58c6f52a6d908e4be 100644 (file)
@@ -75,7 +75,7 @@
        </term>
        <listitem>
          <para>
-           Set the number of days since January 1st, 1970 when the password
+           Set the number of days since 1970-01-01 when the password
            was last changed. The date may also be expressed in the format
            YYYY-MM-DD (or the format more commonly used in your area).
            If the <replaceable>LAST_DAY</replaceable> is set to
@@ -90,7 +90,7 @@
        </term>
        <listitem>
          <para>
-           Set the date or number of days since January 1, 1970 on which the
+           Set the date or number of days since 1970-01-01 on which the
            user's account will no longer be accessible. The date may also
            be expressed in the format YYYY-MM-DD (or the format more
            commonly used in your area). A user whose account is locked must
            in 180 days:
          </para>
          <programlisting>
-           chage -E $(date -d +180days +%Y-%m-%d)
+           chage -E $(date -d +180days +%F)
          </programlisting>
          <para>
            Passing the number <emphasis remap='I'>-1</emphasis> as the
index a407f10b7e034864b0eaa38dec21fa49b9be4a8e..e286079f95e074080f701c892b3a545b31907190 100644 (file)
            still be able to login using another authentication token
            (e.g. an SSH key). To disable the account, administrators
            should use <command>usermod --expiredate 1</command> (this sets
-           the account's expire date to Jan 2, 1970).
+           the account's expire date to 1970-01-02).
          </para>
          <para>
            Users with a locked password are not allowed to change their
index cec69705825d11a49d13374e302d5469d4adbbde..e06598687b03f5627c8515ba2bd05e00dc841024 100644 (file)
        <listitem>
          <para>
            The date of the last password change, expressed as the number
-           of days since Jan 1, 1970 00:00 UTC.
+           of days since 1970-01-01 00:00:00 UTC.
          </para>
          <para>
            The value 0 has a special meaning, which is that the user
        <listitem>
          <para>
            The date of expiration of the account, expressed as the number
-           of days since Jan 1, 1970 00:00 UTC.
+           of days since 1970-01-01 00:00:00 UTC.
          </para>
          <para>
            Note that an account expiration differs from a password