Move everything from /var/adm to /var/log
[unleashed.git] / share / man / man1 / passwd.1
blob9b1580590ccd1ee68bbe930ab29fa2cd301c8994
1 '\" te
2 .\" Copyright 1989 AT&T
3 .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
5 .\"  See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the
6 .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH PASSWD 1 "Feb 25, 2017"
8 .SH NAME
9 passwd \- change login password and password attributes
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fBpasswd\fR [\fB-r\fR files | \fB-r\fR ldap | \fB-r\fR nis] [\fIname\fR]
14 .fi
16 .LP
17 .nf
18 \fBpasswd\fR [\fB-r\fR files] [\fB-egh\fR] [\fIname\fR]
19 .fi
21 .LP
22 .nf
23 \fBpasswd\fR [\fB-r\fR files] \fB-s\fR [\fB-a\fR]
24 .fi
26 .LP
27 .nf
28 \fBpasswd\fR [\fB-r\fR files] \fB-s\fR [\fIname\fR]
29 .fi
31 .LP
32 .nf
33 \fBpasswd\fR [\fB-r\fR files] [\fB-d\fR | \fB-l\fR | \fB-u\fR | \fB-N\fR] [\fB-f\fR] [\fB-n\fR \fImin\fR]
34      [\fB-w\fR \fIwarn\fR] [\fB-x\fR \fImax\fR] \fIname\fR
35 .fi
37 .LP
38 .nf
39 \fBpasswd\fR \fB-r\fR ldap [\fB-egh\fR] [\fIname\fR]
40 .fi
42 .LP
43 .nf
44 \fBpasswd\fR [\fB-r\fR ldap ] \fB-s\fR [\fB-a\fR]
45 .fi
47 .LP
48 .nf
49 \fBpasswd\fR [\fB-r\fR ldap ] \fB-s\fR [\fIname\fR]
50 .fi
52 .LP
53 .nf
54 \fBpasswd\fR \fB-r\fR ldap [\fB-d | -l | -u | -N\fR] [\fB-f\fR] [\fB-n\fR \fImin\fR] [\fB-w\fR \fIwarn\fR] [\fB-x\fR \fImax\fR] \fIname\fR
55 .fi
57 .LP
58 .nf
59 \fBpasswd\fR \fB-r\fR nis [\fB-egh\fR] [\fIname\fR]
60 .fi
62 .SH DESCRIPTION
63 .LP
64 The \fBpasswd\fR command changes the password or lists password attributes
65 associated with the user's login \fIname\fR. Additionally, privileged users can
66 use \fBpasswd\fR to install or change passwords and attributes associated with
67 any login \fIname\fR.
68 .sp
69 .LP
70 When used to change a password, \fBpasswd\fR prompts everyone for their old
71 password, if any. It then prompts for the new password twice. When the old
72 password is entered, \fBpasswd\fR checks to see if it has aged sufficiently. If
73 \fBaging\fR is insufficient, \fBpasswd\fR terminates; see \fBshadow\fR(4) for
74 additional information.
75 .sp
76 .LP
77 If aging is sufficient, a check is made to ensure that the new password meets
78 construction requirements. When the new password is entered a second time, the
79 two copies of the new password are compared. If the two copies are not
80 identical, the cycle of prompting for the new password is repeated for, at
81 most, two more times.
82 .sp
83 .LP
84 Passwords must be constructed to meet the following requirements:
85 .RS +4
86 .TP
87 .ie t \(bu
88 .el o
89 Each password must have \fBPASSLENGTH\fR characters, where \fBPASSLENGTH\fR is
90 defined in \fB/etc/default/passwd\fR and is set to \fB6\fR. Setting
91 \fBPASSLENGTH\fR to more than eight characters requires configuring
92 \fBpolicy.conf\fR(4) with an algorithm that supports greater than eight
93 characters.
94 .RE
95 .RS +4
96 .TP
97 .ie t \(bu
98 .el o
99 Each password must meet the configured complexity constraints specified in
100 \fB/etc/default/passwd\fR.
102 .RS +4
104 .ie t \(bu
105 .el o
106 Each password must not be a member of the configured dictionary as specified in
107 \fB/etc/default/passwd\fR.
109 .RS +4
111 .ie t \(bu
112 .el o
113 For accounts in name services which support password history checking, if prior
114 password history is defined, new passwords must not be contained in the prior
115 password history.
119 If all requirements are met, by default, the \fBpasswd\fR command consults
120 \fB/etc/nsswitch.conf\fR to determine in which repositories to perform password
121 update. It searches the \fBpasswd\fR and \fBpasswd_compat\fR entries. The
122 sources (repositories) associated with these entries are updated. However, the
123 password update configurations supported are limited to the following cases.
124 Failure to comply with the configurations prevents users from logging onto the
125 system. The password update configurations are:
126 .RS +4
128 .ie t \(bu
129 .el o
130 \fBpasswd: files\fR
132 .RS +4
134 .ie t \(bu
135 .el o
136 \fBpasswd: files ldap\fR
138 .RS +4
140 .ie t \(bu
141 .el o
142 \fBpasswd: files nis\fR
146 You can add the \fBad\fR keyword to any of the \fBpasswd\fR configurations in
147 the above list. However, you cannot use the \fBpasswd\fR command to change the
148 password of an Active Directory (AD) user. If the \fBad\fR keyword is found in
149 the \fBpasswd\fR entry during a password update operation, it is ignored. To
150 update the password of an AD user, use the \fBkpasswd\fR(1) command.
153 The administrator configured for updating LDAP shadow
154 information can change any password attributes. See \fBldapclient\fR(8).
157 When a user has a password stored in one of the name services as well as a
158 local \fBfiles\fR entry, the \fBpasswd\fR command updates both. It is possible
159 to have different passwords in the name service and local files entry. Use
160 \fBpasswd\fR \fB-r\fR to change a specific password repository.
163 In the \fBfiles\fR case, super-users (for instance, real and effective uid
164 equal to \fB0\fR, see \fBid\fR(8) and \fBsu\fR(8)) can change any password.
165 Hence, \fBpasswd\fR does not prompt privileged users for the old password.
166 Privileged users are not forced to comply with password aging and password
167 construction requirements. A privileged user can create a null password by
168 entering a carriage return in response to the prompt for a new password. (This
169 differs from \fBpasswd\fR \fB-d\fR because the \fBpassword\fR prompt is still
170 displayed.) If NIS is in effect, superuser on the root master can change any
171 password without being prompted for the old NIS \fBpasswd\fR, and is not forced
172 to comply with password construction requirements.
175 If LDAP is in effect, superuser on any Native LDAP client system can change any
176 password without being prompted for the old LDAP passwd, and is not forced to
177 comply with password construction requirements.
180 Normally, \fBpasswd\fR entered with no arguments changes the password of the
181 current user. When a user logs in and then invokes \fBsu\fR(8) to become
182 superuser or another user, \fBpasswd\fR changes the original user's password,
183 not the password of the superuser or the new user.
186 Any user can use the \fB-s\fR option to show password attributes for his or her
187 own login \fIname\fR. Otherwise, the \fB-s\fR argument is restricted to the
188 superuser.
191 The format of the display is:
193 .in +2
195 \fIname status mm/dd/yy min max warn\fR
197 .in -2
202 or, if password aging information is not present,
204 .in +2
206 \fIname status\fR
208 .in -2
213 where
215 .ne 2
217 \fB\fIname\fR\fR
219 .RS 12n
220 The login \fBID\fR of the user.
224 .ne 2
226 \fB\fIstatus\fR\fR
228 .RS 12n
229 The password status of \fIname\fR.
231 The \fIstatus\fR field can take the following values:
233 .ne 2
235 \fBLK\fR
237 .RS 6n
238 This account is \fBlocked\fR account. See Security.
242 .ne 2
244 \fBNL\fR
246 .RS 6n
247 This account is a \fBno login\fR account. See \fBSecurity\fR.
251 .ne 2
253 \fBNP\fR
255 .RS 6n
256 This account has no password and is therefore open without authentication.
260 .ne 2
262 \fBPS\fR
264 .RS 6n
265 This account has a password.
271 .ne 2
273 \fB\fImm/dd/yy\fR\fR
275 .RS 12n
276 The date password was last changed for \fIname\fR. All password aging dates are
277 determined using Greenwich Mean Time (Universal Time) and therefore can differ
278 by as much as a day in other time zones.
282 .ne 2
284 \fB\fImin\fR\fR
286 .RS 12n
287 The minimum number of days required between password changes for \fIname\fR.
288 \fBMINWEEKS\fR is found in \fB/etc/default/passwd\fR and is set to \fBNULL\fR.
292 .ne 2
294 \fB\fImax\fR\fR
296 .RS 12n
297 The maximum number of days the password is valid for \fIname\fR. \fBMAXWEEKS\fR
298 is found in \fB/etc/default/passwd\fR and is set to \fBNULL\fR.
302 .ne 2
304 \fB\fIwarn\fR\fR
306 .RS 12n
307 The number of days relative to \fImax\fR before the password expires and the
308 \fIname\fR are warned.
311 .SS "Security"
313 \fBpasswd\fR uses \fBpam\fR(3PAM) for password change. It calls PAM with a
314 service name \fBpasswd\fR and uses service module type \fBauth\fR for
315 authentication and password for password change.
318 Locking an account (\fB-l\fR option) does not allow its use for password based
319 login or delayed execution (such as \fBat\fR(1), \fBbatch\fR(1), or
320 \fBcron\fR(8)). The \fB-N\fR option can be used to disallow password based
321 login, while continuing to allow delayed execution.
322 .SH OPTIONS
324 The following options are supported:
326 .ne 2
328 \fB\fB-a\fR\fR
330 .RS 17n
331 Shows password attributes for all entries. Use only with the \fB-s\fR option.
332 \fIname\fR must not be provided. For the \fBfiles\fR and \fBldap\fR
333 repositories, this is restricted to the superuser.
337 .ne 2
339 \fB\fB-e\fR\fR
341 .RS 17n
342 Changes the login shell. The choice of shell is limited by the requirements
343 of \fBgetusershell\fR(3C). If the user currently has a shell that is not
344 allowed by \fBgetusershell\fR, only root can change it.
348 .ne 2
350 \fB\fB-g\fR\fR
352 .RS 17n
353 Changes the gecos (finger) information. For the \fBfiles\fR repository, this
354 only works for the superuser. Normal users can change the \fBldap\fR or
355 \fBnis\fR repositories.
359 .ne 2
361 \fB\fB-h\fR\fR
363 .RS 17n
364 Changes the home directory.
368 .ne 2
370 \fB\fB-r\fR\fR
372 .RS 17n
373 Specifies the repository to which an operation is applied. The supported
374 repositories are \fBfiles\fR, \fBldap\fR, or \fBnis\fR.
378 .ne 2
380 \fB\fB-s\fR \fIname\fR\fR
382 .RS 17n
383 Shows password attributes for the login \fIname\fR. For the \fBfiles\fR and
384 \fBldap\fR repositories, this only works for the superuser. It does not work
385 at all for the \fBnis\fR repository which does not support password aging.
387 The output of this option, and only this option is Stable and parsable. The
388 format is \fIusername\fR followed by white space followed by one of the
389 following codes.
391 New codes might be added in the future so code that parses this must be
392 flexible in the face of unknown codes. While all existing codes are two
393 characters in length that might not always be the case.
395 The following are the current status codes:
397 .ne 2
399 \fB\fBLK\fR\fR
401 .RS 6n
402 Account is locked for UNIX authentication. \fBpasswd -l\fR was run or the
403 authentication failed \fBRETRIES\fR times.
407 .ne 2
409 \fB\fBNL\fR\fR
411 .RS 6n
412 The account is a no login account. \fBpasswd -N\fR has been run.
416 .ne 2
418 \fB\fBNP\fR\fR
420 .RS 6n
421 Account has no password. \fBpasswd -d\fR was run.
425 .ne 2
427 \fB\fBPS\fR\fR
429 .RS 6n
430 The account probably has a valid password.
434 .ne 2
436 \fB\fBUN\fR\fR
438 .RS 6n
439 The data in the password field is unknown. It is not a recognizable hashed
440 password or any of the above entries. See \fBcrypt\fR(3C) for valid password
441 hashes.
446 .SS "Privileged User Options"
448 Only a privileged user can use the following options:
450 .ne 2
452 \fB\fB-d\fR\fR
454 .RS 11n
455 Deletes password for \fIname\fR and unlocks the account. The login \fIname\fR
456 is not prompted for password. It is only applicable to the \fBfiles\fR and
457 \fBldap\fR repositories.
459 If the \fBlogin\fR(1) option \fBPASSREQ=YES\fR is configured, the account is
460 not able to login. \fBPASSREQ=YES\fR is the delivered default.
464 .ne 2
466 \fB\fB-f\fR\fR
468 .RS 11n
469 Forces the user to change password at the next login by expiring the password
470 for \fIname\fR.
474 .ne 2
476 \fB\fB-l\fR\fR
478 .RS 11n
479 Locks password entry for \fIname\fR. See the \fB-d\fR or \fB-u\fR option for
480 unlocking the account.
484 .ne 2
486 \fB\fB-N\fR\fR
488 .RS 11n
489 Makes the password entry for name a value that cannot be used for login, but
490 does not lock the account. See the \fB-d\fR option for removing the value, or
491 to set a password to allow logins.
495 .ne 2
497 \fB\fB-n\fR \fImin\fR\fR
499 .RS 11n
500 Sets minimum field for \fIname\fR. The \fImin\fR field contains the minimum
501 number of days between password changes for \fIname\fR. If \fImin\fR is greater
502 than \fImax\fR, the user can not change the password. Always use this option
503 with the \fB-x\fR option, unless \fImax\fR is set to \fB\(mi1\fR (aging turned
504 off). In that case, \fImin\fR need not be set.
508 .ne 2
510 \fB\fB-u\fR\fR
512 .RS 11n
513 Unlocks a locked password for entry name. See the \fB-d\fR option for removing
514 the locked password, or to set a password to allow logins.
518 .ne 2
520 \fB\fB-w\fR \fIwarn\fR\fR
522 .RS 11n
523 Sets warn field for \fIname\fR. The \fIwarn\fR field contains the number of
524 days before the password expires and the user is warned. This option is not
525 valid if password aging is disabled.
529 .ne 2
531 \fB\fB-x\fR \fImax\fR\fR
533 .RS 11n
534 Sets maximum field for \fIname\fR. The \fImax\fR field contains the number of
535 days that the password is valid for \fIname\fR. The aging for \fIname\fR is
536 turned off immediately if \fImax\fR is set to \fB\(mi1\fR\&.
539 .SH OPERANDS
541 The following operand is supported:
543 .ne 2
545 \fB\fIname\fR\fR
547 .RS 8n
548 User login name.
551 .SH ENVIRONMENT VARIABLES
553 If any of the \fBLC_*\fR variables, that is, \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR,
554 \fBLC_TIME\fR, \fBLC_COLLATE\fR, \fBLC_NUMERIC\fR, and \fBLC_MONETARY\fR (see
555 \fBenviron\fR(5)), are not set in the environment, the operational behavior of
556 \fBpasswd\fR for each corresponding locale category is determined by the value
557 of the \fBLANG\fR environment variable. If \fBLC_ALL\fR is set, its contents
558 are used to override both the \fBLANG\fR and the other \fBLC_*\fR variables. If
559 none of the above variables is set in the environment, the \fBC\fR (U.S. style)
560 locale determines how \fBpasswd\fR behaves.
562 .ne 2
564 \fB\fBLC_CTYPE\fR\fR
566 .RS 15n
567 Determines how \fBpasswd\fR handles characters. When \fBLC_CTYPE\fR is set to a
568 valid value, \fBpasswd\fR can display and handle text and filenames containing
569 valid characters for that locale. \fBpasswd\fR can display and handle Extended
570 Unix Code (\fBEUC\fR) characters where any individual character can be 1, 2, or
571 3 bytes wide. \fBpasswd\fR can also handle \fBEUC\fR characters of 1, 2, or
572 more column widths. In the \fBC\fR locale, only characters from ISO 8859-1 are
573 valid.
577 .ne 2
579 \fB\fBLC_MESSAGES\fR\fR
581 .RS 15n
582 Determines how diagnostic and informative messages are presented. This includes
583 the language and style of the messages, and the correct form of affirmative and
584 negative responses. In the \fBC\fR locale, the messages are presented in the
585 default form found in the program itself (in most cases, U.S. English).
588 .SH EXIT STATUS
590 The \fBpasswd\fR command exits with one of the following values:
592 .ne 2
594 \fB\fB0\fR\fR
596 .RS 6n
597 Success.
601 .ne 2
603 \fB\fB1\fR\fR
605 .RS 6n
606 Permission denied.
610 .ne 2
612 \fB\fB2\fR\fR
614 .RS 6n
615 Invalid combination of options.
619 .ne 2
621 \fB\fB3\fR\fR
623 .RS 6n
624 Unexpected failure. Password file unchanged.
628 .ne 2
630 \fB\fB4\fR\fR
632 .RS 6n
633 Unexpected failure. Password file(s) missing.
637 .ne 2
639 \fB\fB5\fR\fR
641 .RS 6n
642 Password file(s) busy. Try again later.
646 .ne 2
648 \fB\fB6\fR\fR
650 .RS 6n
651 Invalid argument to option.
655 .ne 2
657 \fB\fB7\fR\fR
659 .RS 6n
660 Aging option is disabled.
664 .ne 2
666 \fB\fB8\fR\fR
668 .RS 6n
669 No memory.
673 .ne 2
675 \fB\fB9\fR\fR
677 .RS 6n
678 System error.
682 .ne 2
684 \fB\fB10\fR\fR
686 .RS 6n
687 Account expired.
690 .SH FILES
691 .ne 2
693 \fB\fB/etc/default/passwd\fR\fR
695 .RS 23n
696 Default values can be set for the following flags in \fB/etc/default/passwd\fR.
697 For example: \fBMAXWEEKS=26\fR
699 .ne 2
701 \fB\fBDICTIONDBDIR\fR\fR
703 .RS 16n
704 The directory where the generated dictionary databases reside. Defaults to
705 \fB/var/passwd\fR.
707 If neither \fBDICTIONLIST\fR nor \fBDICTIONDBDIR\fR is specified, the system
708 does not perform a dictionary check.
712 .ne 2
714 \fB\fBDICTIONLIST\fR\fR
716 .RS 16n
717 DICTIONLIST can contain list of comma separated dictionary files such as
718 \fBDICTIONLIST=\fR\fIfile1\fR, \fIfile2\fR, \fIfile3\fR. Each dictionary file
719 contains multiple lines and each line consists of a word and a NEWLINE
720 character (similar to \fB/usr/share/lib/dict/words\fR.) You must specify full
721 pathnames. The words from these files are merged into a database that is used
722 to determine whether a password is based on a dictionary word.
724 If neither \fBDICTIONLIST\fR nor \fBDICTIONDBDIR\fR is specified, the system
725 does not perform a dictionary check.
727 To pre-build the dictionary database, see \fBmkpwdict\fR(8).
731 .ne 2
733 \fB\fBHISTORY\fR\fR
735 .RS 16n
736 Maximum number of prior password history to keep for a user. Setting the
737 \fBHISTORY\fR value to zero (\fB0\fR), or removing the flag, causes the prior
738 password history of all users to be discarded at the next password change by
739 any user. The default is not to define the \fBHISTORY\fR flag. The maximum
740 value is \fB26.\fR Currently, this functionality is enforced only for user
741 accounts defined in the \fBfiles\fR name service (local
742 \fBpasswd\fR(4)/\fBshadow\fR(4)).
746 .ne 2
748 \fB\fBMAXREPEATS\fR\fR
750 .RS 16n
751 Maximum number of allowable consecutive repeating characters. If
752 \fBMAXREPEATS\fR is not set or is zero (\fB0\fR), the default is no checks
756 .ne 2
758 \fB\fBMAXWEEKS\fR\fR
760 .RS 16n
761 Maximum time period that password is valid.
765 .ne 2
767 \fB\fBMINALPHA\fR\fR
769 .RS 16n
770 Minimum number of alpha character required. If \fBMINALPHA\fR is not set, the
771 default is \fB2\fR.
775 .ne 2
777 \fB\fBMINDIFF\fR\fR
779 .RS 16n
780 Minimum differences required between an old and a new password. If
781 \fBMINDIFF\fR is not set, the default is \fB3\fR.
785 .ne 2
787 \fB\fBMINDIGIT\fR\fR
789 .RS 16n
790 Minimum number of digits required. If \fBMINDIGIT\fR is not set or is set to
791 zero (\fB0\fR), the default is no checks. You cannot be specify \fBMINDIGIT\fR
792 if \fBMINNONALPHA\fR is also specified.
796 .ne 2
798 \fB\fBMINLOWER\fR\fR
800 .RS 16n
801 Minimum number of lower case letters required. If not set or zero (0), the
802 default is no checks.
806 .ne 2
808 \fB\fBMINNONALPHA\fR\fR
810 .RS 16n
811 Minimum number of non-alpha (including numeric and special) required. If
812 \fBMINNONALPHA\fR is not set, the default is \fB1\fR. You cannot specify
813 \fBMINNONALPHA\fR if \fBMINDIGIT\fR or \fBMINSPECIAL\fR is also specified.
817 .ne 2
819 \fB\fBMINWEEKS\fR\fR
821 .RS 16n
822 Minimum time period before the password can be changed.
826 .ne 2
828 \fB\fBMINSPECIAL\fR\fR
830 .RS 16n
831 Minimum number of special (non-alpha and non-digit) characters required. If
832 \fBMINSPECIAL\fR is not set or is zero (\fB0\fR), the default is no checks. You
833 cannot specify \fBMINSPECIAL\fR if you also specify \fBMINNONALPHA\fR.
837 .ne 2
839 \fB\fBMINUPPER\fR\fR
841 .RS 16n
842 Minimum number of upper case letters required. If \fBMINUPPER\fR is not set or
843 is zero (\fB0\fR), the default is no checks.
847 .ne 2
849 \fB\fBNAMECHECK\fR\fR
851 .RS 16n
852 Enable/disable checking or the login name. The default is to do login name
853 checking. A case insensitive value of \fBno\fR disables this feature.
857 .ne 2
859 \fB\fBPASSLENGTH\fR\fR
861 .RS 16n
862 Minimum length of password, in characters.
866 .ne 2
868 \fB\fBWARNWEEKS\fR\fR
870 .RS 16n
871 Time period until warning of date of password's ensuing expiration.
875 .ne 2
877 \fB\fBWHITESPACE\fR\fR
879 .RS 16n
880 Determine if white space characters are allowed in passwords. Valid values are
881 \fBYES\fR and \fBNO\fR. If \fBWHITESPACE\fR is not set or is set to \fBYES\fR,
882 white space characters are allowed.
888 .ne 2
890 \fB\fB/etc/oshadow\fR\fR
892 .RS 23n
893 Temporary file used by \fBpasswd\fR and \fBpassmgmt\fR to update the real
894 shadow file.
898 .ne 2
900 \fB\fB/etc/passwd\fR\fR
902 .RS 23n
903 Password file.
907 .ne 2
909 \fB\fB/etc/shadow\fR\fR
911 .RS 23n
912 Shadow password file.
916 .ne 2
918 \fB\fB/etc/shells\fR\fR
920 .RS 23n
921 Shell database.
924 .SH ATTRIBUTES
926 See \fBattributes\fR(5) for descriptions of the following attributes:
931 box;
932 c | c
933 l | l .
934 ATTRIBUTE TYPE  ATTRIBUTE VALUE
936 CSI     Enabled
938 Interface Stability     See below.
943 The human readable output is Uncommitted. The options are Committed.
944 .SH SEE ALSO
946 \fBat\fR(1), \fBbatch\fR(1), \fBfinger\fR(1), \fBkpasswd\fR(1), \fBlogin\fR(1),
947 \fBcron\fR(8), \fBdomainname\fR(8), \fBeeprom\fR(8),
948 \fBid\fR(8), \fBldapclient\fR(8), \fBmkpwdict\fR(8), \fBpassmgmt\fR(8),
949 \fBsu\fR(8), \fBuseradd\fR(8), \fBuserdel\fR(8),
950 \fBusermod\fR(8), \fBcrypt\fR(3C), \fBgetpwnam\fR(3C), \fBgetspnam\fR(3C),
951 \fBgetusershell\fR(3C), \fBpam\fR(3PAM),
952 \fBloginlog\fR(4), \fBnsswitch.conf\fR(4), \fBpam.conf\fR(4), \fBpasswd\fR(4),
953 \fBpolicy.conf\fR(4), \fBshadow\fR(4), \fBshells\fR(4), \fBattributes\fR(5),
954 \fBenviron\fR(5), \fBpam_authtok_check\fR(5), \fBpam_authtok_get\fR(5),
955 \fBpam_authtok_store\fR(5), \fBpam_dhkeys\fR(5), \fBpam_ldap\fR(5),
956 \fBpam_unix_account\fR(5), \fBpam_unix_auth\fR(5), \fBpam_unix_session\fR(5)
957 .SH NOTES
959 The \fBpam_unix\fR(5) module is no longer supported. Similar functionality is
960 provided by \fBpam_unix_account\fR(5), \fBpam_unix_auth\fR(5),
961 \fBpam_unix_session\fR(5), \fBpam_authtok_check\fR(5),
962 \fBpam_authtok_get\fR(5), \fBpam_authtok_store\fR(5), \fBpam_dhkeys\fR(5), and
963 \fBpam_passwd_auth\fR(5).
966 The \fByppasswd\fR command is a wrapper around \fBpasswd\fR. Use of
967 \fByppasswd\fR is discouraged. Use \fBpasswd\fR \fB-r\fR \fIrepository_name\fR
968 instead.
971 Changing a password in the \fBfiles\fR and \fBldap\fR repositories clears the
972 failed login count.
975 Changing a password reactivates an account deactivated for inactivity for the
976 length of the inactivity period.
979 If \fB/etc/shells\fR is present, and is corrupted, it may provide an attack
980 vector that would compromise the system.  The \fBgetusershell\fR(3c) library
981 call has a pre-vetted list of shells, so /etc/shells should be used with
982 caution.
985 Input terminal processing might interpret some key sequences and not pass them
986 to the \fBpasswd\fR command.
989 An account with no password, status code \fBNP\fR, might not be able to login.
990 See the \fBlogin\fR(1) \fBPASSREQ\fR option.