Operating System - HP-UX
1829566 Members
1307 Online
109992 Solutions
New Discussion

adding multiple users with pwage

 
brian_31
Super Advisor

adding multiple users with pwage

I have a need to add multiple users (about 90 users) with the gecos field having the first_name, last_name and also enable passwd aging for these new id's. we just use the normal /etc/passwd file. is there a way this can be automated? could someone please help.

THanks

brian
1 REPLY 1
VK2COT
Honored Contributor

Re: adding multiple users with pwage

Hello Brian,

Yes, it can be done. Many useful scripts
exist around. If you search this forum,
I am sure you will get lot of hits.

Personally, I wrote a Perl script to do it:

http://www.circlingcycle.com.au/Unix-sources/add-batch-Unix-accounts.pl.txt

Cheers,

VK2COT
VK2COT - Dusan Baljevic