On Thu, Mar 17, 2011 at 3:19 PM, Salvador Fandino <sfand...@yahoo.com>wrote:

> On 03/14/2011 07:59 PM, siegfr...@heintze.com wrote:
>
>> Does anyone know the perl API (presumably on CPAN) for
>> useradd/userdel/usermod to automate the manipulation of users on FreeBSD
>> systems? On Linux systems?
>> thanks,
>> Siegfried
>>
>>
> "adduser" is actually a Perl program that uses "useradd" under the hood, at
> least on Linux (FreeBSD removed Perl from its core so it may be an
> executable there now).
>
> If none of the wrapper modules available from CPAN suits your need you can
> use its as a sample and even copy&paste code from there into your script.


If seen quite a few automated user management tools written in Perl and they
all seem to just wrap useradd, so I'm guessing that's the "standard" way to
achieve it.

Katie
-- 
CoderStack
http://www.coderstack.co.uk/php-jobs
The Software Developer Job Board

Reply via email to