diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1995-09-02 03:56:21 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1995-09-02 03:56:21 +0000 |
commit | 30955b898350ac476a47d83662e9679de21eb4e0 (patch) | |
tree | fe85eaa8e0b56e1f3b289fcd543dab08a04dd2e6 /chpass/chpass.1 | |
parent | 73f5cfe48aa896d40905726d22fe1354a0608d6a (diff) | |
download | pw-darwin-30955b898350ac476a47d83662e9679de21eb4e0.tar.gz pw-darwin-30955b898350ac476a47d83662e9679de21eb4e0.tar.zst pw-darwin-30955b898350ac476a47d83662e9679de21eb4e0.zip |
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.
Diffstat (limited to 'chpass/chpass.1')
-rw-r--r-- | chpass/chpass.1 | 23 |
1 files changed, 22 insertions, 1 deletions
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 |