Visit the LQ Articles and Editorials section
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 01-29-2010, 01:31 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 9

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


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.

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

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


account, script, user

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

All times are GMT -5. The time now is 05:34 AM.

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