2005-12-08 12:14:33 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
kpasswd - Changes the issuer's password in the Authentication Database
|
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
=for html
|
|
|
|
<div class="synopsis">
|
|
|
|
|
|
|
|
B<kpasswd> [B<-x>] S<<< [B<-principal> <I<user name>>] >>>
|
|
|
|
S<<< [B<-password> <I<user's password>>] >>>
|
|
|
|
S<<< [B<-newpassword> <I<user's new password>>] >>> S<<< [B<-cell> <I<cell name>>] >>>
|
|
|
|
S<<< [B<-servers> <I<explicit list of servers>>+] >>> [B<-pipe>] [B<-help>]
|
|
|
|
|
|
|
|
B<kpasswd> [B<-x>] S<<< [B<-pr> <I<user name>>] >>> S<<< [B<-pa> <I<user's password>>] >>>
|
|
|
|
S<<< [B<-n> <I<user's new password>>] >>> S<<< [B<-c> <I<cell name>>] >>>
|
|
|
|
S<<< [B<-s> <I<explicit list of servers>>+] >>> [B<-pi>] [B<-h>]
|
|
|
|
|
|
|
|
=for html
|
|
|
|
</div>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The B<kpasswd> command changes the password recorded in an Authentication
|
|
|
|
Database entry. By default, the command interpreter changes the password
|
|
|
|
for the AFS user name that matches the issuer's local identity (UNIX
|
|
|
|
UID). To specify an alternate user, include the B<-principal>
|
|
|
|
argument. The user named by the B<-principal> argument does not have to
|
|
|
|
appear in the local password file (the F</etc/passwd> file or equivalent).
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
By default, the command interpreter sends the password change request to
|
|
|
|
the Authentication Server running on one of the database server machines
|
2005-12-09 14:48:56 +00:00
|
|
|
listed for the local cell in the F</usr/afs/etc/CellServDB> file on the
|
|
|
|
local disk; it chooses the machine at random. It consults the
|
|
|
|
F</usr/vice/etc/ThisCell> file on the local disk to learn the local cell
|
|
|
|
name. To specify an alternate cell, include the B<-cell> argument.
|
|
|
|
|
|
|
|
Unlike the UNIX B<passwd> command, the B<kpasswd> command does not
|
|
|
|
restrict passwords to eight characters or less; it accepts passwords of
|
|
|
|
virtually any length. All AFS commands that require passwords (including
|
|
|
|
the B<klog>, B<kpasswd>, and AFS-modified login utilities, and the
|
|
|
|
commands in the B<kas> suite) accept passwords longer than eight
|
|
|
|
characters, but some other applications and operating system utilities do
|
|
|
|
not. Selecting an AFS password of eight characters or less enables the
|
|
|
|
user to maintain matching AFS and UNIX passwords.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
The command interpreter makes the following checks:
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
If the program B<kpwvalid> exists in the same directory as the B<kpasswd>
|
|
|
|
command, the command interpreter pass the new password to it for
|
|
|
|
verification. For details, see L<kpwvalid(8)>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
If the B<-reuse> argument to the kas setfields command has been used to
|
|
|
|
prohibit reuse of previous passwords, the command interpreter verifies
|
|
|
|
that the password is not too similar too any of the user's previous 20
|
|
|
|
passwords. It generates the following error message at the shell:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Password was not changed because it seems like a reused password
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
To prevent a user from subverting this restriction by changing the
|
|
|
|
password twenty times in quick succession (manually or by running a
|
|
|
|
script), use the B<-minhours> argument on the B<kaserver> initialization
|
|
|
|
command. The following error message appears if a user attempts to change
|
|
|
|
a password before the minimum time has passed:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-21 00:41:17 +00:00
|
|
|
Password was not changed because you changed it too
|
2005-12-08 12:14:33 +00:00
|
|
|
recently; see your systems administrator
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-x>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Appears only for backwards compatibility.
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-principal> <I<user name>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Names the Authentication Database entry for which to change the
|
|
|
|
password. If this argument is omitted, the database entry with the same
|
|
|
|
name as the issuer's local identity (UNIX UID) is changed.
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-password> <I<user's password>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Specifies the current password. Omit this argument to have the command
|
|
|
|
interpreter prompt for the password, which does not echo visibly:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Old password: current_password
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-newpassword> <I<user's new password>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Specifies the new password, which the B<kpasswd> command interpreter
|
|
|
|
converts into an encryption key (string of octal numbers) before sending
|
|
|
|
it to the Authentication Server for storage in the user's Authentication
|
|
|
|
Database entry.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Omit this argument to have the command interpreter prompt for the
|
|
|
|
password, which does not echo visibly:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
New password (RETURN to abort): <new_password>
|
|
|
|
Retype new password: <new_password>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-cell> <I<cell name>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Specifies the cell in which to change the password, by directing the
|
2005-12-09 14:48:56 +00:00
|
|
|
command to that cell's Authentication Servers. The issuer can abbreviate
|
|
|
|
the cell name to the shortest form that distinguishes it from the other
|
|
|
|
cells listed in the local F</usr/vice/etc/CellServDB> file.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-21 00:41:17 +00:00
|
|
|
By default, the command is executed in the local cell, as defined
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
First, by the value of the environment variable AFSCELL.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Second, in the F</usr/vice/etc/ThisCell> file on the client machine on
|
|
|
|
which the command is issued.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-servers> <I<explicit list of servers>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Establishes a connection with the Authentication Server running on each
|
2005-12-09 14:48:56 +00:00
|
|
|
specified machine, rather than with all of the database server machines
|
|
|
|
listed for the relevant cell in the local copy of the
|
|
|
|
F</usr/vice/etc/CellServDB> file. The B<kpasswd> command interpreter then
|
|
|
|
sends the password-changing request to one machine chosen at random from
|
|
|
|
the set.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-pipe>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Suppresses all output to the standard output stream or standard error
|
2005-12-09 14:48:56 +00:00
|
|
|
stream. The B<kpasswd> command interpreter expects to receive all
|
|
|
|
necessary arguments, each on a separate line, from the standard input
|
|
|
|
stream. Do not use this argument, which is provided for use by application
|
|
|
|
programs rather than human users.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-help>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Prints the online help for this command. All other valid options are
|
|
|
|
ignored.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The following example shows user pat changing her password in the ABC
|
|
|
|
Corporation cell.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
% kpasswd
|
|
|
|
Changing password for 'pat' in cell 'abc.com'.
|
|
|
|
Old password:
|
|
|
|
New password (RETURN to abort):
|
|
|
|
Verifying, please re-enter new_password:
|
|
|
|
|
|
|
|
=head1 PRIVILEGE REQUIRED
|
|
|
|
|
|
|
|
None
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
L<kas_setfields(8)>,
|
|
|
|
L<kas_setpassword(8)>,
|
2005-12-08 12:14:33 +00:00
|
|
|
L<klog(1)>,
|
2005-12-09 14:48:56 +00:00
|
|
|
L<kpwvalid(8)>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
|
|
|
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
|
|
|
|
|
|
|
|
This documentation is covered by the IBM Public License Version 1.0. It was
|
|
|
|
converted from HTML to POD by software written by Chas Williams and Russ
|
|
|
|
Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
|