up | Inhaltsverzeichniss | Kommentar

Manual page for PUTPWPASSWD(3)

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)


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97