Re: File_Passwd and shadow passwords

From: Date: Thu, 12 May 2005 07:37:01 +0000
Subject: Re: File_Passwd and shadow passwords
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19168@lists.php.net to get a copy of this message
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 >

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.pear.general (#19168) next »