Print this page
4107 Add passwd option to read passwords from stdin

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/passwd.1
          +++ new/usr/src/man/man1/passwd.1
   1    1  '\" te
   2    2  .\" Copyright 1989 AT&T
   3    3  .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved.
        4 +.\" Copyright 2015 Nexenta Systems, Inc. All rights reserved.
   4    5  .\" 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    6  .\"  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    7  .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7      -.TH PASSWD 1 "May 31, 2013"
        8 +.TH PASSWD 1 "Jun 18, 2015"
   8    9  .SH NAME
   9   10  passwd \- change login password and password attributes
  10   11  .SH SYNOPSIS
  11   12  .LP
  12   13  .nf
  13   14  \fBpasswd\fR [\fB-r\fR files | \fB-r\fR ldap | \fB-r\fR nis | \fB-r\fR nisplus] [\fIname\fR]
  14   15  .fi
  15   16  
  16   17  .LP
  17   18  .nf
↓ open down ↓ 55 lines elided ↑ open up ↑
  73   74  .nf
  74   75  \fBpasswd\fR \fB-r\fR nisplus [\fB-D\fR \fIdomainname\fR] \fB-s\fR [\fIname\fR]
  75   76  .fi
  76   77  
  77   78  .LP
  78   79  .nf
  79   80  \fBpasswd\fR \fB-r\fR nisplus [\fB-l\fR | \fB-u\fR | \fB-N\fR] [\fB-f\fR] [\fB-n\fR \fImin\fR] [\fB-w\fR \fIwarn\fR]
  80   81       [\fB-x\fR \fImax\fR] [\fB-D\fR \fIdomainname\fR] \fIname\fR
  81   82  .fi
  82   83  
       84 +.LP
       85 +.nf
       86 +\fBpasswd\fR \fB-S\fR [\fIname\fR]
       87 +.fi
       88 +
  83   89  .SH DESCRIPTION
  84      -.sp
  85   90  .LP
  86   91  The \fBpasswd\fR command changes the password or lists password attributes
  87   92  associated with the user's login \fIname\fR. Additionally, privileged users can
  88   93  use \fBpasswd\fR to install or change passwords and attributes associated with
  89   94  any login \fIname\fR.
  90   95  .sp
  91   96  .LP
  92   97  When used to change a password, \fBpasswd\fR prompts everyone for their old
  93   98  password, if any. It then prompts for the new password twice. When the old
  94   99  password is entered, \fBpasswd\fR checks to see if it has aged sufficiently. If
↓ open down ↓ 265 lines elided ↑ open up ↑
 360  365  .ne 2
 361  366  .na
 362  367  \fB\fIwarn\fR\fR
 363  368  .ad
 364  369  .RS 12n
 365  370  The number of days relative to \fImax\fR before the password expires and the
 366  371  \fIname\fR are warned.
 367  372  .RE
 368  373  
 369  374  .SS "Security"
 370      -.sp
 371  375  .LP
 372  376  \fBpasswd\fR uses \fBpam\fR(3PAM) for password change. It calls PAM with a
 373  377  service name \fBpasswd\fR and uses service module type \fBauth\fR for
 374  378  authentication and password for password change.
 375  379  .sp
 376  380  .LP
 377  381  Locking an account (\fB-l\fR option) does not allow its use for password based
 378  382  login or delayed execution (such as \fBat\fR(1), \fBbatch\fR(1), or
 379  383  \fBcron\fR(1M)). The \fB-N\fR option can be used to disallow password based
 380  384  login, while continuing to allow delayed execution.
 381  385  .SH OPTIONS
 382      -.sp
 383  386  .LP
 384  387  The following options are supported:
 385  388  .sp
 386  389  .ne 2
 387  390  .na
 388  391  \fB\fB-a\fR\fR
 389  392  .ad
 390  393  .RS 17n
 391  394  Shows password attributes for all entries. Use only with the \fB-s\fR option.
 392  395  \fIname\fR must not be provided. For the \fBnisplus\fR repository, this shows
↓ open down ↓ 119 lines elided ↑ open up ↑
 512  515  .ad
 513  516  .RS 6n
 514  517  The data in the password field is unknown. It is not a recognizable hashed
 515  518  password or any of the above entries. See \fBcrypt\fR(3C) for valid password
 516  519  hashes.
 517  520  .RE
 518  521  
 519  522  .RE
 520  523  
 521  524  .SS "Privileged User Options"
 522      -.sp
 523  525  .LP
 524  526  Only a privileged user can use the following options:
 525  527  .sp
 526  528  .ne 2
 527  529  .na
 528  530  \fB\fB-d\fR\fR
 529  531  .ad
 530  532  .RS 11n
 531  533  Deletes password for \fIname\fR and unlocks the account. The login \fIname\fR
 532  534  is not prompted for password. It is only applicable to the \fBfiles\fR and
↓ open down ↓ 72 lines elided ↑ open up ↑
 605  607  .ne 2
 606  608  .na
 607  609  \fB\fB-x\fR \fImax\fR\fR
 608  610  .ad
 609  611  .RS 11n
 610  612  Sets maximum field for \fIname\fR. The \fImax\fR field contains the number of
 611  613  days that the password is valid for \fIname\fR. The aging for \fIname\fR is
 612  614  turned off immediately if \fImax\fR is set to \fB\(mi1\fR\&.
 613  615  .RE
 614  616  
 615      -.SH OPERANDS
 616  617  .sp
      618 +.ne 2
      619 +.na
      620 +\fB\fB-S\fR\fR
      621 +.ad
      622 +.RS 11n
      623 +Read the password from standard input (pipe).
      624 +.RE
      625 +
      626 +.SH OPERANDS
 617  627  .LP
 618  628  The following operand is supported:
 619  629  .sp
 620  630  .ne 2
 621  631  .na
 622  632  \fB\fIname\fR\fR
 623  633  .ad
 624  634  .RS 8n
 625  635  User login name.
 626  636  .RE
 627  637  
 628  638  .SH ENVIRONMENT VARIABLES
 629      -.sp
 630  639  .LP
 631  640  If any of the \fBLC_*\fR variables, that is, \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR,
 632  641  \fBLC_TIME\fR, \fBLC_COLLATE\fR, \fBLC_NUMERIC\fR, and \fBLC_MONETARY\fR (see
 633  642  \fBenviron\fR(5)), are not set in the environment, the operational behavior of
 634  643  \fBpasswd\fR for each corresponding locale category is determined by the value
 635  644  of the \fBLANG\fR environment variable. If \fBLC_ALL\fR is set, its contents
 636  645  are used to override both the \fBLANG\fR and the other \fBLC_*\fR variables. If
 637  646  none of the above variables is set in the environment, the \fBC\fR (U.S. style)
 638  647  locale determines how \fBpasswd\fR behaves.
 639  648  .sp
↓ open down ↓ 17 lines elided ↑ open up ↑
 657  666  \fB\fBLC_MESSAGES\fR\fR
 658  667  .ad
 659  668  .RS 15n
 660  669  Determines how diagnostic and informative messages are presented. This includes
 661  670  the language and style of the messages, and the correct form of affirmative and
 662  671  negative responses. In the \fBC\fR locale, the messages are presented in the
 663  672  default form found in the program itself (in most cases, U.S. English).
 664  673  .RE
 665  674  
 666  675  .SH EXIT STATUS
 667      -.sp
 668  676  .LP
 669  677  The \fBpasswd\fR command exits with one of the following values:
 670  678  .sp
 671  679  .ne 2
 672  680  .na
 673  681  \fB\fB0\fR\fR
 674  682  .ad
 675  683  .RS 6n
 676  684  Success.
 677  685  .RE
↓ open down ↓ 82 lines elided ↑ open up ↑
 760  768  .sp
 761  769  .ne 2
 762  770  .na
 763  771  \fB\fB10\fR\fR
 764  772  .ad
 765  773  .RS 6n
 766  774  Account expired.
 767  775  .RE
 768  776  
 769  777  .SH FILES
 770      -.sp
 771  778  .ne 2
 772  779  .na
 773  780  \fB\fB/etc/default/passwd\fR\fR
 774  781  .ad
 775  782  .RS 23n
 776  783  Default values can be set for the following flags in \fB/etc/default/passwd\fR.
 777  784  For example: \fBMAXWEEKS=26\fR
 778  785  .sp
 779  786  .ne 2
 780  787  .na
↓ open down ↓ 214 lines elided ↑ open up ↑
 995 1002  .sp
 996 1003  .ne 2
 997 1004  .na
 998 1005  \fB\fB/etc/shells\fR\fR
 999 1006  .ad
1000 1007  .RS 23n
1001 1008  Shell database.
1002 1009  .RE
1003 1010  
1004 1011  .SH ATTRIBUTES
1005      -.sp
1006 1012  .LP
1007 1013  See \fBattributes\fR(5) for descriptions of the following attributes:
1008 1014  .sp
1009 1015  
1010 1016  .sp
1011 1017  .TS
1012 1018  box;
1013 1019  c | c
1014 1020  l | l .
1015 1021  ATTRIBUTE TYPE  ATTRIBUTE VALUE
1016 1022  _
1017 1023  CSI     Enabled
1018 1024  _
1019 1025  Interface Stability     See below.
1020 1026  .TE
1021 1027  
1022 1028  .sp
1023 1029  .LP
1024 1030  The human readable output is Uncommitted. The options are Committed.
1025 1031  .SH SEE ALSO
1026      -.sp
1027 1032  .LP
1028 1033  \fBat\fR(1), \fBbatch\fR(1), \fBfinger\fR(1), \fBkpasswd\fR(1), \fBlogin\fR(1),
1029 1034  \fBnistbladm\fR(1), \fBcron\fR(1M), \fBdomainname\fR(1M), \fBeeprom\fR(1M),
1030 1035  \fBid\fR(1M), \fBldapclient\fR(1M), \fBmkpwdict\fR(1M), \fBpassmgmt\fR(1M),
1031 1036  \fBpwconv\fR(1M), \fBsu\fR(1M), \fBuseradd\fR(1M), \fBuserdel\fR(1M),
1032 1037  \fBusermod\fR(1M), \fBcrypt\fR(3C), \fBgetpwnam\fR(3C), \fBgetspnam\fR(3C),
1033 1038  \fBgetusershell\fR(3C), \fBnis_local_directory\fR(3NSL), \fBpam\fR(3PAM),
1034 1039  \fBloginlog\fR(4), \fBnsswitch.conf\fR(4), \fBpam.conf\fR(4), \fBpasswd\fR(4),
1035 1040  \fBpolicy.conf\fR(4), \fBshadow\fR(4), \fBshells\fR(4), \fBattributes\fR(5),
1036 1041  \fBenviron\fR(5), \fBpam_authtok_check\fR(5), \fBpam_authtok_get\fR(5),
1037 1042  \fBpam_authtok_store\fR(5), \fBpam_dhkeys\fR(5), \fBpam_ldap\fR(5),
1038 1043  \fBpam_unix_account\fR(5), \fBpam_unix_auth\fR(5), \fBpam_unix_session\fR(5)
1039 1044  .SH NOTES
1040      -.sp
1041 1045  .LP
1042 1046  The \fBpam_unix\fR(5) module is no longer supported. Similar functionality is
1043 1047  provided by \fBpam_unix_account\fR(5), \fBpam_unix_auth\fR(5),
1044 1048  \fBpam_unix_session\fR(5), \fBpam_authtok_check\fR(5),
1045 1049  \fBpam_authtok_get\fR(5), \fBpam_authtok_store\fR(5), \fBpam_dhkeys\fR(5), and
1046 1050  \fBpam_passwd_auth\fR(5).
1047      -.sp
1048 1051  .LP
1049 1052  The \fBnispasswd\fR and \fBypasswd\fR commands are wrappers around
1050 1053  \fBpasswd\fR. Use of \fBnispasswd\fR and \fBypasswd\fR is discouraged. Use
1051 1054  \fBpasswd\fR \fB-r\fR \fIrepository_name\fR instead.
1052 1055  .sp
1053 1056  .LP
1054 1057  NIS+ might not be supported in future releases of the Solaris operating system.
1055 1058  Tools to aid the migration from NIS+ to LDAP are available in the current
1056 1059  Solaris release. For more information, visit
1057 1060  http://www.sun.com/directory/nisplus/transition.html.
↓ open down ↓ 22 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX