PUTPWPASSWD(3)PUTPWPASSWD(3)NAMEputpwpasswd - change password
SYNOPSIS
int
putpwpasswd(
char *username,
char *cleartext,
char *encrypted
)
DESCRIPTIONputpwpasswd 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 ALSOcrypt(3), getpwent(3), netinfo(5)NeXT Computer, Inc. October 8, 1990 PUTPWPASSWD(3)