Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putpwpasswd(3) — NEXTSTEP 4.0pr1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

crypt(3)

getpwent(3)

netinfo(5)

PUTPWPASSWD(3)  —  UNIX Programmer’s Manual

NAME

putpwpasswd − change password

SYNOPSIS

int
putpwpasswd(
char ∗username,
char ∗cleartext,
char ∗encrypted
)

DESCRIPTION

putpwpasswd changes the encrypted password in the NetInfo database for the user username.  encrypted is the new encrypted value to be stored in the database.  cleartext is the old unencrypted password for username which is normally required.  If this value, when encrypted, does not match the stored encrypted value for username, then the password cannot be changed.  The old password is not required if the current encrypted password for username is the null string ("") nor if the calling process has superuser status and is attempting to change a value in a local database. 

DIAGNOSTICS

A value of one (1) is returned if the information was successfully changed.  A value of zero (0) is returned if the information could not be changed. 

SEE ALSO

crypt(3), getpwent(3), netinfo(5)
 

NeXT Computer, Inc.  —  October 8, 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026