Using perl to automate add user on linux/freebsd systems
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
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Using perl to automate add user on linux/freebsd systems
On 3/14/2011 11:59 AM, siegfried [at] 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
>
>
You might look at the webmin program to see how it does it.
Ted
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Using perl to automate add user on linux/freebsd systems
ä=BA=8E 2011-3-15 11:11, Ted Mittelstaedt =E5=86=99=E9=81=93:
> On 3/14/2011 11:59 AM, siegfried [at] heintze.com wrote:
>> Does anyone know the perl API (presumably on CPAN) for
>> useradd/userdel/usermod to automate the manipulation of users on FreeB=
SD
>> systems? On Linux systems?
You might look at these modules on CPAN:
Provision::Unix::User::FreeBSD
Provision::Unix::User::Linux
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Using perl to automate add user on linux/freebsd systems
On 03/14/2011 07:59 PM, siegfried [at] 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.
- Salva
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: Using perl to automate add user on linux/freebsd systems
--bcaec51a75a4508854049ec1ca40
Content-Type: text/plain; charset=ISO-8859-1
On Thu, Mar 17, 2011 at 3:19 PM, Salvador Fandino <sfandino [at] yahoo.com>wrote:
> On 03/14/2011 07:59 PM, siegfried [at] 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
--bcaec51a75a4508854049ec1ca40--