summaryrefslogtreecommitdiffstats
path: root/pw/pw.8
diff options
context:
space:
mode:
authorEugene Grosbein <eugen@FreeBSD.org>2017-12-09 23:34:00 +0000
committerEugene Grosbein <eugen@FreeBSD.org>2017-12-09 23:34:00 +0000
commit90ec288bde911fac62b4a16b52d3518518cce279 (patch)
tree34add1cd15e8dd8c3ca8a335627e7a8229f3bda2 /pw/pw.8
parent7bc7048d845425d5ae63c7f9b51439368f5263be (diff)
downloadpw-darwin-90ec288bde911fac62b4a16b52d3518518cce279.tar.gz
pw-darwin-90ec288bde911fac62b4a16b52d3518518cce279.tar.zst
pw-darwin-90ec288bde911fac62b4a16b52d3518518cce279.zip
pw(8): correct expiration period handling and command line overrides
to preconfigured values for -e, -p and -w flags. Use non-negative symbols instead of magic values in passwd_val/pw_password functions. PR: 223431 Submitted by: Yuri Pankov (in part, patch for the manual) Reported by: mav (mentor) MFC after: 3 days Relnotes: yes
Diffstat (limited to 'pw/pw.8')
-rw-r--r--pw/pw.810
1 files changed, 9 insertions, 1 deletions
diff --git a/pw/pw.8 b/pw/pw.8
index 5a93c52..e848979 100644
--- a/pw/pw.8
+++ b/pw/pw.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 12, 2016
+.Dd December 10, 2017
.Dt PW 8
.Os
.Sh NAME
@@ -611,6 +611,14 @@ that the account expires.
A value of 0 suppresses automatic calculation of the expiry date.
.It Fl p Ar days
Set the default password expiration period in days.
+When
+.Fl D
+is used, the
+.Ar days
+argument is interpreted differently.
+It must be numeric and represents the number of days after creation
+that the account expires.
+A value of 0 suppresses automatic calculation of the expiry date.
.It Fl g Ar group
Set the default group for new users.
If a blank group is specified using