yppasswd(3N)


yppasswd -- update user password in NIS database

Synopsis

cc [options] file -lnsl

#include <rpcsvc/yppasswd.h>

int yppasswd(char *oldpass, struct passwd *newpw);

Description

The yppasswd function is used to change an entry in the Network Information Service (NIS) user password database.

In order for yppasswd to succeed, oldpass must match the existing (unencrypted) password in the database; that password is then replaced with newpw.

Return values

On success, yppasswd returns zero. Otherwise, a non-zero value is returned.

References

yppasswd(1nis), yppasswdd(1Mnis)

Notices

If secure RPC is in operation and the user's old password was used to encrypt their secret key, yppasswd(1nis) re-encrypts the user's secret key using the new password. The yppasswd function, however, does not change the encryption of the user's secret key.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004