* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
static char copyright
[] =
"@(#) Copyright (c) 1988, 1993\n\
The Regents of the University of California. All rights reserved.\n";
static char sccsid
[] = "@(#)passwd.c 8.1 (Berkeley) %G%";
while ((ch
= getopt(argc
, argv
, "l")) != EOF
)
case 'l': /* change local password file */
while ((ch
= getopt(argc
, argv
, "")) != EOF
)
if ((uname
= getlogin()) == NULL
) {
(void)fprintf(stderr
, "passwd: getlogin: %s\n",
if (use_kerberos
&& strcmp(argv
[0], uname
)) {
(void)fprintf(stderr
, "passwd: %s\n\t%s\n%s\n",
"to change another user's Kerberos password, do",
"\"kinit user; passwd; kdestroy\";",
"to change a user's local passwd, use \"passwd -l user\"");
exit(local_passwd(uname
));
(void)fprintf(stderr
, "usage: passwd [-l] user\n");
(void)fprintf(stderr
, "usage: passwd user\n");