- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need a script to add multiple users listed in file...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2012 10:26 PM
08-13-2012 10:26 PM
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.
- Tags:
- useradd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2012 10:44 PM
08-13-2012 10:44 PM
Re: Need a script to add multiple users listed in file...
You should be able to use useradd after encrypting the password.
Consult the tag cloud for usermod.sam:
http://h30499.www3.hp.com/t5/tag/usermod.sam/tg-p
http://h30499.www3.hp.com/t5/System-Administration/Using-Makekey-and-Usermod-sam/m-p/4431217
http://h30499.www3.hp.com/t5/System-Administration/usr-sam-lbin-usermod-sam/m-p/4090976