Connecting Tech Pros Worldwide Forums | Help | Site Map

Platform independent adduser script?

morphex
Guest
 
Posts: n/a
#1: Jul 18 '05
Hi there,

does anyone here know of a script that enables adding of users on UNIX
platforms via python?

Thanks,

Morten


Grant Edwards
Guest
 
Posts: n/a
#2: Jul 18 '05

re: Platform independent adduser script?


On 2005-02-18, morphex <morphex@gmail.com> wrote:[color=blue]
> Hi there,
>
> does anyone here know of a script that enables adding of users on UNIX
> platforms via python?[/color]

os.system("adduser ... ") ?

The way that users are added on "UNIX platforms" varies. Most
(Linux, BSD, Solaris) seem to have an "adduser" command. I
don't know how consistent the format of the adduser arguements
are.

--
Grant Edwards grante Yow! Didn't I buy a 1951
at Packard from you last March
visi.com in Cairo?
Gustavo Rahal
Guest
 
Posts: n/a
#3: Jul 18 '05

re: Platform independent adduser script?


Hi

On redhat you can use a libuser module that provides some highlevel
system tasks.
redhat-tools use this module all the time.. look at some sources

Gustavo


morphex wrote:[color=blue]
> Hi there,
>
> does anyone here know of a script that enables adding of users on UNIX
> platforms via python?
>
> Thanks,
>
> Morten
>[/color]

Closed Thread