LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-06-2015, 12:46 PM   #1
newtech
LQ Newbie
 
Registered: Apr 2015
Posts: 2

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


Hi,
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.

Thanks
 
Old 04-06-2015, 12:49 PM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
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, 12:57 PM   #3
newtech
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, 04:58 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,172

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
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.
 
  


Reply


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 01:14 PM
shell script ssh to multiple servers hoa Linux - Newbie 1 06-08-2012 01:39 AM
[SOLVED] Run shell script on multiple linux servers vanish78 Linux - Newbie 5 05-16-2012 11:42 AM
Adding multiple user shell script plexus Programming 2 06-19-2004 09:36 PM
bash script for adding multiple users pilipk01 Linux - Newbie 4 01-12-2004 11:05 PM


All times are GMT -5. The time now is 06:35 AM.

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