File::UnixAuth - Read and write the Unix authentication files
Describes version v0.26.$Rev: 1 $ of File::UnixAuth
use File::UnixAuth; my $unixauth_ref = File::UnixAuth->new( $unixauth_attributes );
Extends File::DataClass::Schema. Provides for the reading and writing of the the Unix /etc/group, /etc/passwd, and /etc/shadow files.
Since these files share a common format they all use the the same storage class File::UnixAuth::Storage. Defines three result sources; group, passwd, and shadow
group
passwd
shadow
Defines these attributes;
post_update_hook
A code reference that is called after an update completes. Defaults to undef. If set to:
undef
sub { qx( 'grpconv' ) }
then the file /etc/gshadow will be updated
result_source_attributes
Defines the result sources and their attributes
source_name
A required string. Selects the required result source. Set to one of; group, passwd, or shadow
storage_attributes
Change the defaults to create a backup file with a .bak extension
Modifies these methods;
resultset
source
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
Copyright (c) 2015 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install File::UnixAuth, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::UnixAuth
CPAN shell
perl -MCPAN -e shell install File::UnixAuth
For more information on module installation, please visit the detailed CPAN module installation guide.