
CatalystX::Usul::Roles::Unix - Group management for the Unix OS

0.7.$Revision: 1181 $

use CatalystX::Usul::Roles::Unix; my $class = CatalystX::Usul::Roles::Unix; my $role_obj = $class->new( $attrs, $app );

Methods to manipulate the group file which defaults to /etc/group. This class implements the methods required by it's base class

Constructor
$role_obj->add_user_to_role( $group, $user );
Calls the suid root wrapper to add the specified user to the specified group
$role_obj->create( $group );
Calls the suid root wrapper to create a new group
$role_obj->delete( $group );
Calls the suid root wrapper to delete an existing group
$role_obj->remove_user_to_role( $group, $user );
Calls the suid root wrapper to remove the given user from the specified group
$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

None

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, <Support at RoxSoft.co.uk>

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