[PEAR] Re: File_Passwd and shadow passwords
by Michael Wallner other posts by this author
May 12 2005 1:49AM messages near this date
[PEAR] File_Passwd and shadow passwords
|
Re: [PEAR] Re: Problems installing PEAR under WinXP with PHP 5.0.3?
Hi Aaron Gould, you wrote:
> Can anyone tell me if File_Passwd can work with shadow password files?
>
> The following snippet of code is allowing alterations to the /etc/passwd
> file, and an "x" is inserted into the password field (which is
> expected). Shadow remains untouched...
Sorry for the late answer, but I'm currently lacking time.
This question has been asked some time ago, please search the
archive for a wrapper function; it basically creates two
File_Passwd_Unix objects, one for /etc/passwd and one for
/etc/shadow. Please note that you must not specify the password in
the "extra" fields and that you need to define the extra fields map
for the shadow file manually.
Regards,
--
Michael - < mike(@)php.net >
Attachments:
signature.asc
unknown1
Thread:
Aaron Gould
Michael Wallner
|