Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/chpass Mentions options -l and -y as in passwd.1.
details: https://anonhg.NetBSD.org/src/rev/028ee9315f1c
branches: trunk
changeset: 534991:028ee9315f1c
user: soren <soren%NetBSD.org@localhost>
date: Wed Aug 07 23:20:29 2002 +0000
description:
Mentions options -l and -y as in passwd.1.
PR misc/14574 from Hiramatsu Yoshifumi.
diffstat:
usr.bin/chpass/chpass.1 | 18 +++++++++++++++++-
usr.bin/chpass/chpass.c | 12 +++++-------
2 files changed, 22 insertions(+), 8 deletions(-)
diffs (71 lines):
diff -r 804439c5d97e -r 028ee9315f1c usr.bin/chpass/chpass.1
--- a/usr.bin/chpass/chpass.1 Wed Aug 07 21:20:49 2002 +0000
+++ b/usr.bin/chpass/chpass.1 Wed Aug 07 23:20:29 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: chpass.1,v 1.17 2001/12/01 18:55:17 wiz Exp $
+.\" $NetBSD: chpass.1,v 1.18 2002/08/07 23:20:29 soren Exp $
.\"
.\" Copyright (c) 1988, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -45,6 +45,12 @@
.Nm
.Op Fl a Ar list
.Op Fl s Ar newshell
+.Op Fl l
+.Op user
+.Nm chpass
+.Op Fl a Ar list
+.Op Fl s Ar newshell
+.Op Fl y
.Op user
.Sh DESCRIPTION
.Nm
@@ -70,6 +76,16 @@
.Fl s
option attempts to change the user's shell to
.Ar newshell .
+.It Fl l
+This option causes the password to be updated only in the local
+password file. When changing only the local password,
+.Xr pwd_mkdb 8
+is used to update the password databases.
+.It Fl y
+This forces the YP password database entry to be changed, even if
+the user has an entry in the local database. The
+.Xr rpc.yppasswdd 8
+daemon should be running on the YP master server.
.El
.Pp
Possible display items are as follows:
diff -r 804439c5d97e -r 028ee9315f1c usr.bin/chpass/chpass.c
--- a/usr.bin/chpass/chpass.c Wed Aug 07 21:20:49 2002 +0000
+++ b/usr.bin/chpass/chpass.c Wed Aug 07 23:20:29 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chpass.c,v 1.23 2002/06/11 06:06:18 itojun Exp $ */
+/* $NetBSD: chpass.c,v 1.24 2002/08/07 23:20:30 soren Exp $ */
/*-
* Copyright (c) 1988, 1993, 1994
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)chpass.c 8.4 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: chpass.c,v 1.23 2002/06/11 06:06:18 itojun Exp $");
+__RCSID("$NetBSD: chpass.c,v 1.24 2002/08/07 23:20:30 soren Exp $");
#endif
#endif /* not lint */
@@ -284,10 +284,8 @@
usage()
{
-#ifdef YP
- (void)fprintf(stderr, "usage: chpass [-a list] [-s shell] [-l]%s [user]\n", use_yp?" [-y]":"");
-#else
- (void)fprintf(stderr, "usage: chpass [-a list] [-s shell] [user]\n");
-#endif
+ (void)fprintf(stderr, "usage: %s [-a list] [-s shell] [-l] [user]\n"
+ " %s [-a list] [-s shell] [-y] [user]\n",
+ getprogname(), getprogname());
exit(1);
}
Home |
Main Index |
Thread Index |
Old Index