File_Passwd_Unix::changePasswd()

File_Passwd_Unix::changePasswd() -- Change password

Synopsis

mixed File_Passwd_Unix::changePasswd (string $user, string $pass)

Opis

Change the password of a certain user.

Parametr

string $user

the user whose password should be changed

string $pass

the new plaintext password

Zwracana wartość

Zwraca TRUE w przypadku powodzenia, PEAR_Error w przypadku niepowodzenia.

Tabela 39-1. Możliwe wartości PEAR_Error

Error CodeSummary
FILE_PASSWD_E_EXISTS_NOTuser doesn't exist
FILE_PASSWD_INVALID_ENC_MODEactual encryption mode is not supported
FILE_PASSWD_UNDEFINEDif passwd file is shadowed

Uwagi

Ta funkcja nie może być wywołana statycznie.