Unix::PasswdFilePerl interface to /etc/passwd format files | |
Download |
Unix::PasswdFile Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Steve Snodgrass
- Publisher web site:
- http://search.cpan.org/~ssnodgra/
Unix::PasswdFile Tags
Unix::PasswdFile Description
Perl interface to /etc/passwd format files Unix::PasswdFile is a Perl module that provides an abstract interface to /etc/passwd format files. It automatically handles file locking, getting colons in the right places, and all the other niggling details.SYNOPSIS use Unix::PasswdFile; $pw = new Unix::PasswdFile "/etc/passwd"; $pw->user("joeblow", $pw->encpass("secret"), $pw->maxuid + 1, 10, "Joe Blow", "/export/home/joeblow", "/bin/ksh"); $pw->delete("deadguy"); $pw->passwd("johndoe", $pw->encpass("newpass")); foreach $user ($pw->users) { print "Username: $user, Full Name: ", $pw->gecos($user), "\n"; } $pw->commit(); undef $pw; Requirements: · Perl
Unix::PasswdFile Related Software