summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2000-01-19 08:33:28 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2000-01-19 08:33:28 +0000
commit8d9026a5bbb9293e1f95748b655612937d4e821a (patch)
treea2dacb4a642501e5a58816d02247db08aca6dda8
parent8cdfc712a742c34e74490818e6329309edfd2e10 (diff)
From NetBSD: describe what & does in a gecos field, and clarify between
master.passwd and passwd. Also, a little tidying.
-rw-r--r--share/man/man5/passwd.538
1 files changed, 28 insertions, 10 deletions
diff --git a/share/man/man5/passwd.5 b/share/man/man5/passwd.5
index 10ee0ef6b02..a1c7e9821b4 100644
--- a/share/man/man5/passwd.5
+++ b/share/man/man5/passwd.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: passwd.5,v 1.11 1998/11/29 15:47:24 aaron Exp $
+.\" $OpenBSD: passwd.5,v 1.12 2000/01/19 08:33:27 pjanzen Exp $
.\" $NetBSD: passwd.5,v 1.4 1995/07/28 06:46:05 phil Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
@@ -43,9 +43,9 @@
.Nd format of the password file
.Sh DESCRIPTION
The
-.Nm
-files are files consisting of newline separated records, one per user,
-containing ten colon
+.Nm master.passwd
+file, readable only by root, consists of
+newline-separated records, one per user, containing ten colon
.Pq Sq \&:
separated fields. These fields are as follows:
.Pp
@@ -74,6 +74,16 @@ User's home directory.
User's login shell.
.El
.Pp
+The publically-readable
+.Nm
+file is generated from the
+.Nm master.passwd
+file by
+.Xr pwd_mkdb 8
+and has the class, change, and expire fields removed. Also, the encrypted
+password field is replaced by an asterisk
+.Pq Sq \&* .
+.Pp
The
.Ar name
field is the login used to access the computer account, and the
@@ -106,7 +116,9 @@ If the
.Ar password
field is empty, no password will be required to gain access to the
machine. This is almost invariably a mistake.
-Because these files contain the encrypted user passwords, they should
+Because
+.Nm master.passwd
+contains the encrypted user passwords, it should
not be readable by anyone without appropriate privileges.
.Pp
Which type of cipher is used to encrypt the password information
@@ -146,9 +158,7 @@ This field may be left empty to turn off the account aging feature.
.Pp
The
.Ar gecos
-field normally contains comma
-.Pq Sq \&,
-separated subfields as follows:
+field normally contains comma-separated subfields as follows:
.Pp
.Bl -tag -width office -offset indent -compact
.It name
@@ -161,9 +171,17 @@ User's work phone number.
User's home phone number.
.El
.Pp
-This information is used by the
+The full name may contain an ampersand
+.Pq Sq \&& ,
+which will be replaced by the capitalized login name when the gecos field
+is displayed or used by various programs such as
+.Xr finger 1 ,
+.Xr sendmail 8 ,
+etc.
+.Pp
+The office and phone number subfields, if they exist, are used by the
.Xr finger 1
-program.
+program and possibly by other applications.
.Pp
The user's home directory is the full
.Tn UNIX