* $passwd = &File_Passwd::factory('Unix'); * $passwd->setFile('/my/passwd/file'); * $passwd->load(); * $passwd->addUser('mike', 'secret'); * $passwd->save(); *
* array * + user => array * + pass => crypted_passwd or 'x' if shadowed * + uid => user id * + gid => group id * + gecos => comments * + home => home directory * + shell => standard shell *
* array * + user => array * + 0 => crypted_passwd * + 1 => ... * + 2 => ... *
* array * + md5 * + des *
* user:password:user_id:group_id:gecos:home_dir:shell *