!23 [sync] PR-20: update passwd manual page

From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2024-07-04 08:29:38 +00:00 committed by Gitee
commit 55ae8b52fb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 58 additions and 1 deletions

View File

@ -1,12 +1,13 @@
Name: passwd
Version: 0.80
Release: 10
Release: 11
Summary: An implementation of the password setting/changing utility through PAM and libuser libraries
License: BSD or GPL+
URL: https://pagure.io/passwd
Source0: https://releases.pagure.org/passwd/passwd-%{version}.autotoolized.tar.bz2
Patch1: fix-incorrect-S-output.patch
Patch2: update-manpage.patch
Patch9000: add-sm3-crypt-support.patch
BuildRequires:libselinux-devel >= 2.1.6-3 gcc glib2-devel, libuser-devel, pam-devel, libuser >= 0.53-1
@ -58,6 +59,12 @@ make check
%{_mandir}/man1/*.gz
%changelog
* Tue Apr 30 2024 liyuzhe <liyuzhe@cqsoftware.com.cn> - 0.80-11
- Type:defect
- ID:NA
- SUG:NA
- DESC:update manpage
* Mon Aug 15 2022 xueyamao <xueyamao@kylinos.cn> - 0.80-10
- Type:defect
- ID:NA

50
update-manpage.patch Normal file
View File

@ -0,0 +1,50 @@
diff --git a/man/passwd.1 b/man/passwd.1
index 1bc2a6e..9727b88 100644
--- a/man/passwd.1
+++ b/man/passwd.1
@@ -40,7 +40,7 @@
passwd \- update user's authentication tokens
.SH SYNOPSIS
-.B passwd [-k] [-l] [-u [-f]] [-d] [-e] [-n mindays] [-x maxdays] [-w warndays] [-i inactivedays] [-S] [--stdin] [username]
+.B passwd [-k] [-l] [-u [-f]] [-d] [-e] [-n mindays] [-x maxdays] [-w warndays] [-i inactivedays] [-S] [--stdin] [-?] [--usage] [username]
.sp 2
.SH DESCRIPTION
The passwd utility is used to update user's authentication token(s).
@@ -82,7 +82,7 @@ function correctly.
.SH OPTIONS
.TP
-\fB\-k\fR, \fB\-\-keep\fR
+\fB\-k\fR, \fB\-\-keep\-tokens\fR
The option
.B \-k
is used to indicate that the update should only be for expired
@@ -158,8 +158,8 @@ root only.
This will output a short information about the status of the password
for a given account. The status information consists of 7 fields. The
first field is the user's login name. The second field indicates if the
-user account has a locked password (L), has no password (NP), or has a
-usable password (P). The third field gives the date of the last password
+user account has a locked password (LK), has no password (NP), or has a
+usable password (PS). The third field gives the date of the last password
change. The next four fields are the minimum age, maximum age, warning
period, and inactivity period for the password. These ages are expressed
in days.
@@ -174,6 +174,14 @@ from the real date of the last password change by ±1 day.
.sp
This option is available to root only.
+.TP
+\fB\-?\fR, \fB\-\-help\fR
+Print a help message and exit.
+
+.TP
+\fB\-\-usage\fR
+Print a short usage message and exit.
+
.SH "Remember the following two principles"
.IP \fBProtect\ your\ password.\fR