From af48a24968183dcd74a5e78953bcf06a9bef153d Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Fri, 28 Feb 1992 22:49:51 -0800 Subject: [PATCH] add backward compatibility script for old passwd files SCCS-vsn: share/man/man5/passwd.5 6.8 --- usr/src/share/man/man5/passwd.5 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/usr/src/share/man/man5/passwd.5 b/usr/src/share/man/man5/passwd.5 index 105ba6fe4e..c4e15defa6 100644 --- a/usr/src/share/man/man5/passwd.5 +++ b/usr/src/share/man/man5/passwd.5 @@ -3,7 +3,7 @@ .\" .\" %sccs.include.redist.man% .\" -.\" @(#)passwd.5 6.7 (Berkeley) %G% +.\" @(#)passwd.5 6.8 (Berkeley) %G% .\" .Dd .Dt PASSWD 5 @@ -136,6 +136,23 @@ is assumed. .Xr vipw 8 .Sh BUGS User information should (and eventually will) be stored elsewhere. +.Sh COMPATIBILITY +The password file format has changed since 4.3BSD. +The following awk script can be used to convert your old-style password +file into a new style password file. +The additional fields +.Dq class , +.Dq change +and +.Dq expire +are added, but are turned off by default. +Class is currently not implemented, but change and expire are; to set them, +use the current day in seconds from the epoch + whatever number of seconds +of offset you want. +.Bd -literal -offset indent +BEGIN { FS = ":"} +{ print $1 ":" $2 ":" $3 ":" $4 "::0:0:" $5 ":" $6 ":" $7 } +.Ed .Sh HISTORY A .Nm -- 2.20.1