- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script to create multiple users on multiple se...
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
Forums
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
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
03-13-2002 02:00 AM
03-13-2002 02:00 AM
script to create multiple users on multiple servers
Has anyone got script to create multiple users on multiple servers (HP 10.20 & 11)
Cheers in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 02:04 AM
03-13-2002 02:04 AM
Re: script to create multiple users on multiple servers
Alternatively (and probably illegally), why not just append one passwd file to the existing passwd file then tar the home directories? As long as the user only has primary group membership, they will not need to go into the /etc/group file (HP-UX 11 only - I think 10.20 insists on all group memberships being present in the /etc/group file).
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 02:07 AM
03-13-2002 02:07 AM
Re: script to create multiple users on multiple servers
you can do it simply with the following:
for i in $*
do
useradd -m $1
done
usage of script:
script_name list_of_users_you_want_to_create
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 02:13 AM
03-13-2002 02:13 AM
Re: script to create multiple users on multiple servers
there are grave disadvantages to doing this
checkout NIS and NIS+ .
The pupose of Network Information Services is to store information that users, workstations , servers and applications must have to communicate across a network. Without a network information service, each workstation would have to maintain its own copy of this information.
NIS and NIS plus is part of the o/s easily configurable and not charged for.
good luck
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 04:36 AM
03-13-2002 04:36 AM
Re: script to create multiple users on multiple servers
In my expierence, i don't like to give users multiple locations. After setting up automountd, maintance becomes really easy... and yes.. make sure to have all UID etc the same by using one general useradd script (which you also can start on /home/root/bin/my_useradd, once you have /home running on automounter).
greetings