Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-06-2015, 11:46 AM   #1
LQ Newbie
Registered: Apr 2015
Posts: 2

Rep: Reputation: Disabled
shell script for adding multiple users on multiple servers.

i want to create multiple users on multiply servers, is there anyway to create a script to do that? i have about 50 users that i need to create on 5 boxes.

i would really appreciate the help if someone can assist me with script to do that.

Old 04-06-2015, 11:49 AM   #2
LQ Guru
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,795

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
Sure you can easily create a script and execute it five times on the boxes. But first would be nice to know how do you want to create those users (userids, homes, shells, groups, other defaults...), where are the usernames coming from? Do you have already something to start with?
1 members found this post helpful.
Old 04-06-2015, 11:57 AM   #3
LQ Newbie
Registered: Apr 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
User names are coming from other team, asking to create individual IDs for support purposes.
and i have a list of user names and list of servers.
Old 04-07-2015, 03:58 AM   #4
Senior Member
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,356

Rep: Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833
Ok, so what have you written so far?

---------- Post added 7th Apr 2015 at 09:59 AM ----------

Oh, and if adding / deleting users on multiple servers is going to be a regular occurrence then look at FREEIPA as an option.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Script to remove users from a group from multiple AIX servers aswani5858 AIX 8 01-08-2015 12:14 PM
shell script ssh to multiple servers hoa Linux - Newbie 1 06-08-2012 12:39 AM
[SOLVED] Run shell script on multiple linux servers vanish78 Linux - Newbie 5 05-16-2012 10:42 AM
Adding multiple user shell script plexus Programming 2 06-19-2004 08:36 PM
bash script for adding multiple users pilipk01 Linux - Newbie 4 01-12-2004 10:05 PM

All times are GMT -5. The time now is 07:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration