archive

Create's a tarball of the users home directory. Typically done right before you rm -rf their home directory as part of a de-provisioning step.

if ( $prov->user_archive("user") ) 
{
    print "user archived";
};

returns a boolean.

NAME

Provision::Unix::User::FreeBSD - Provision Unix Accounts on FreeBSD systems

SYNOPSIS

Handles provisioning operations (create, modify, destroy) for system users on UNIX based operating systems.

use Provision::Unix::User::FreeBSD;

my $user_fbsd = Provision::Unix::User::FreeBSD->new();
...

FUNCTIONS

verify_master_passwd

Verify that new master.passwd is the right size. I found this necessary on some versions of FreeBSD as a race condition would cause the master.passwd file to get corrupted. Now I verify that after I'm finished making my changes, the new file is a small amount larger (or smaller) than the original.

AUTHOR

Matt Simerson, <matt at tnpi.net>

BUGS

Please report any bugs or feature requests to bug-unix-provision-user at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Provision-Unix. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Provision::Unix

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2008 Matt Simerson

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.