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


CatalystX-Usul documentation  | view source Contained in the CatalystX-Usul distribution.

Index


Name

Top

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

Version

Top

0.3.$Revision: 576 $

Synopsis

Top

   use CatalystX::Usul::Roles::Unix;

   my $class = CatalystX::Usul::Roles::Unix;

   my $role_obj = $class->new( $app, $config );

Description

Top

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

Subroutines/Methods

Top

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

Top

None

Configuration and Environment

Top

None

Dependencies

Top

CatalystX::Usul::Roles
Unix::GroupFile

Incompatibilities

Top

There are no known incompatibilities in this module

Bugs and Limitations

Top

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Author

Top

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright

Top


CatalystX-Usul documentation  | view source Contained in the CatalystX-Usul distribution.