HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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