man SystemInstaller::Passwd () - a library to modify passwd files from Perl
NAME
SystemInstaller::Passwd - a library to modify passwd files from Perl
SYNOPSIS
use SystemInstaller::Passwd qw(update_user); update_user( imagepath => '/var/lib/systemimager/image/image1', user => 'root', password => 'yourmoma' );
DESCRIPTION
This library uses the usermod command to set the password for a user within an image. They password given is encrypted using crypt and then passed to usermod.
METHODS
- update_user(%variables)
AUTHORS
Sean Dague <japh@us.ibm.com>, Michael Chase-Salerno <mchasal@users.sf.net>
SEE ALSO
COPYRIGHT
Copyright 2001 International Business Machines
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
CHANGELOG
$Log: Passwd.pm,v $ Revision 1.8 2002/06/12 15:34:35 mchasal Use usermod for password setting.
Revision 1.7 2001/10/09 15:36:57 sdague added better error messages if password files can't be opened
Revision 1.6 2001/09/04 17:04:22 sdague updated shadow passwd fields
Revision 1.5 2001/08/31 17:51:08 sdague added some more stub documentation
Revision 1.4 2001/08/31 17:46:43 sdague added version and changelog to SystemInstaller::Passwd