* useradd -batch mode?
@ 1995-10-07 4:00 Mathias Koerber
1995-10-08 4:00 ` Brian Weaver
0 siblings, 1 reply; 2+ messages in thread
From: Mathias Koerber @ 1995-10-07 4:00 UTC (permalink / raw)
Hi,
I am looking into ways to automate account generation. On OSF/1
this gets difficult for 2 main resaons:
a) the passwords are held in /tcb/auth/files
b) OSF uses dbm style passwd files for fast lookup.
There is an adduser script, but it is interactive and rebuilds
the dbm file every time, which can take quite some time with a huge
passwd file.
We could just add all users to /etc/passwd and then run mkuser, but
we will still have to change each user's passwd in the tcb.
Has anyone done a batch-style user generation program that makes these
easy and fast?
regards
--
Mathias Koerber mathias@singnet.com.sg
SingNet NOC Mathias_Koerber@POBOX.ORG.SG
Singapore Telecoms
* Eifersucht ist eine Leidenschaft, die mit Eifer sucht was Leiden schafft *
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: useradd -batch mode?
1995-10-07 4:00 useradd -batch mode? Mathias Koerber
@ 1995-10-08 4:00 ` Brian Weaver
0 siblings, 0 replies; 2+ messages in thread
From: Brian Weaver @ 1995-10-08 4:00 UTC (permalink / raw)
I've written a program in perl that adds accounts from the command line.
It takes care of everything including encrypting the password, and
rebuilding the dbm files, although I prefer to rebuild the dbm
database after I add all of the accounts, instead of after each one,
so you may want to comment the last line out. Anyway, it works with
enhanced security, and is very fast at adding account. All you have
to type is
mkuser username last first group password
and the account is added. I actually call it from another program
that I wrote to generate student accounts, so it works fine standalone,
or called from any program you wish. If you'd like a copy, ftp
to ftp.pr1.k12.co.us and get /pub/mkuser/mkuser.pl
Please email me any comments/questions.
-- Brian
------------------------------------------------------------------------
Brian Weaver weaver@pr1.k12.co.us
System Administrator PoudreR1 School District
My opinions are my own and not that of the Poudre R1 School District.
Mathias Koerber (mathias@merlion.singnet.com.sg) wrote:
: Hi,
: I am looking into ways to automate account generation. On OSF/1
: this gets difficult for 2 main resaons:
: a) the passwords are held in /tcb/auth/files
: b) OSF uses dbm style passwd files for fast lookup.
: There is an adduser script, but it is interactive and rebuilds
: the dbm file every time, which can take quite some time with a huge
: passwd file.
: We could just add all users to /etc/passwd and then run mkuser, but
: we will still have to change each user's passwd in the tcb.
: Has anyone done a batch-style user generation program that makes these
: easy and fast?
: regards
: --
: Mathias Koerber mathias@singnet.com.sg
: SingNet NOC Mathias_Koerber@POBOX.ORG.SG
: Singapore Telecoms
: * Eifersucht ist eine Leidenschaft, die mit Eifer sucht was Leiden schafft *
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-10-08 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-10-07 4:00 useradd -batch mode? Mathias Koerber
1995-10-08 4:00 ` Brian Weaver
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox