LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-29-2010, 12:31 PM   #1
janak_17
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Rep: Reputation: 0
Consisten User Account Creation/Maint. Script.


Hi,

I would like to create a script for consistent user account creation and maintenance.

Current situation:

Server A
user1:11111:15:USER USER:...
user2:22222:15:USER USER:...
Server B
user1:33333:15:USER USER:...
user2:11111:15:USER USER:...
Server C
user3:22222:15:USER USER:...
user2:33333:15:USER USER:...

Now i would like to make uid consistent on all servers for each user. Next time if user1 needs to be created on Server D it should automatically pick the particular uid.

Please suggest as soon as possible.

Thanks
Janak
 
Old 01-29-2010, 04:34 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Adduser will let you specify the uid of the user, so its fairly trivial to give them the same uid across all servers.
 
  


Reply

Tags
account, script, user



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
tools for user account creation/permissions bajones Linux - Newbie 1 12-31-2008 07:43 PM
How to program shell script to automate mass user account creation? EsAsher Linux - General 2 06-30-2007 08:41 AM
Automate user account creation bczm8703 Programming 6 06-12-2007 09:20 PM
Doubt in super user account creation with SUSE-10.0 tcegrid Linux - General 1 04-06-2007 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration