Name
CatalystX::Usul::Roles::Unix - Group management for the Unix OS
Version
0.5.$Revision: 1139 $
Synopsis
use CatalystX::Usul::Roles::Unix;
my $class = CatalystX::Usul::Roles::Unix;
my $role_obj = $class->new( $attrs, $app );
Description
Methods to manipulate the group file which defaults to /etc/group. This class implements the methods required by it's base class
Subroutines/Methods
new
Constructor
add_user_to_role
$role_obj->add_user_to_role( $group, $user );
Calls the suid root wrapper to add the specified user to the specified group
create
$role_obj->create( $group );
Calls the suid root wrapper to create a new group
delete
$role_obj->delete( $group );
Calls the suid root wrapper to delete an existing group
remove_user_from_role
$role_obj->remove_user_to_role( $group, $user );
Calls the suid root wrapper to remove the given user from the specified group
roles_update
$role_obj->roles_update( $cmd, $field, $user, $group );
Called from the suid root wrapper this is the method that updates the group file. The $cmd
is either add or delete. The $field
is either user or group
Diagnostics
None
Configuration and Environment
None
Dependencies
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Author
Peter Flanigan, <Support at RoxSoft.co.uk>
License and Copyright
Copyright (c) 2008 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