Operating System - HP-UX
1751860 Members
5841 Online
108782 Solutions
New Discussion

Script for useradd in hp-ux 11.31

 
Syedfurquan
Trusted Contributor

Script for useradd in hp-ux 11.31

Hello Experts,

 

I am using HP-UX 11.31 and need to add around 400 users on my new rx2800 system. Can anyone please help me with any script for this.

 

Thanks for anyhelp in advance?

 

Regards,

 

Regards,
Syed
3 REPLIES 3
prasanth479
Regular Visitor

Re: Script for useradd in HP-UX 11.31

I tried it myself, Please check if it is helpful to you.

 

 

# PSW=`perl -e "print crypt('test', 'ab')"`
# echo $PSW
abgOeLfPimXQo
# useradd -p $PSW testuser
#

 

 

Here 'test' is the password .

 

 

VK2COT
Honored Contributor

Re: Script for useradd in hp-ux 11.31

Hello,

 

Others gave you useful advice.

 

Some years ago, I wrote the Perl script to

do it for alarge telco across five operating systems:

Linux, HP-UX, Solaris, Tru64 and AIX).

 

Maybe you find it useful:

 

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

 

You are welcome to modify it as much as you wish as long

as you share it with others. I strongly believe in power

and importance of open-source and public-domain.

 

VK2COT - Dusan Baljevic

VK2COT - Dusan Baljevic