Platform independent adduser script?

M

morphex

Hi there,

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

Thanks,

Morten
 
G

Grant Edwards

Hi there,

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

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.
 
G

Gustavo Rahal

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top