From 30955b898350ac476a47d83662e9679de21eb4e0 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Sat, 2 Sep 1995 03:56:21 +0000 Subject: Make use_yp() smarter about figuring out whether a user is local or NIS (or both, or neither). Also add support for -l and -y flags to force behavior to local or NIS. use_yp() also goes out of its way to retrieve the correct password database information (local or NIS) depending on what the situation since getpwent() & co. can't necessarily be trusted in some cases. Also document new flags in man page. --- chpass/chpass.1 | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'chpass/chpass.1') diff --git a/chpass/chpass.1 b/chpass/chpass.1 index 6186c7b..a42b43e 100644 --- a/chpass/chpass.1 +++ b/chpass/chpass.1 @@ -56,7 +56,7 @@ The information is formatted and supplied to an editor for changes. Only the information that the user is allowed to change is displayed. .Pp The options are as follows: -.Bl -tag -width Ds +.Bl -tag -width flag .It Fl a The super-user is allowed to directly supply a user database entry, in the format specified by @@ -271,6 +271,27 @@ otherwise .Xr yppasswdd 8 will refuse to update the NIS maps. .El +.Pp +There are also two extra option flags that are available when +.Nm chpass +is compiles with NIS support: +.Bl -tag -width flag +.It Fl l +The +.Fl l +flag forces +.Nm chpass +to modify the local copy of a user's password +information in the even that a user exists in both +the local and NIS databases. +.It Fl y +This flag has the opposite effect of +.Fl l . +This flag is largely redundant since +.Nm chpass +operates on NIS entries by default if NIS is enabled. +.El +.Pp .Sh FILES .Bl -tag -width /etc/master.passwd -compact .It Pa /etc/master.passwd -- cgit v1.2.3-56-ge451