Operating System - HP-UX
1752761 Members
5500 Online
108789 Solutions
New Discussion

Need a script to add multiple users listed in file...

 
initin
Advisor

Need a script to add multiple users listed in file...

Hi All,

I will appreciate If anyone can help me in adding the users in HP server by using a script.

I do have  a file containing the list of users with the below details.....
      USER ID        PASSWORD     GROUP NAME::GROUP ID    Shell    Home Directory

e.q.  test1            testpasswd       testgroup::110                       /sbin/sh   /home/testdir

I have basic idea that I can read this file line by line and use positional parameters from it

 The number of users are almost 1000+

 

Thanks in advance

 

Nitin.

1 REPLY 1