LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-27-2008, 10:42 AM   #1
cygnus-x1
Member
 
Registered: Jul 2006
Location: Crisfield
Distribution: Slackware, CentOS, RedHat
Posts: 159

Rep: Reputation: 15
Question useradd - question about --non-unique option


I have not seen much documentation about this option and was wondering how/when/why it would be used.

I ask because I am trying to get a highly available (primary/secondary) solution up where user accounts and id's must be the same on each node. I was thinking of starting at 600 for my client accounts but it seems like the default is to use the next highest number less than 999.

I was wondering what would be the effect of having different user names have the same id like '503'. Does this mean that the users are simply alias's for each other when it comes to permissions on files/directories?

thanks

Doug
 
Old 02-27-2008, 10:46 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Yes, the permissions will be identical, so only a notional difference within the system. much better to have seperate uid's with a common gid.
 
Old 02-27-2008, 10:57 AM   #3
cygnus-x1
Member
 
Registered: Jul 2006
Location: Crisfield
Distribution: Slackware, CentOS, RedHat
Posts: 159

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
Yes, the permissions will be identical, so only a notional difference within the system. much better to have seperate uid's with a common gid.
thanks. I am really not trying to share any permissions via the uid/gid. This system will be partially automated when complete. The automatic part will include generating user accounts and this will need to be done on both machines. My fear is that an innocent user with root permissions (a.k.a manager) might install a tool or create a user on the side on just one box that will screw up the symmetry between the 2 machines. The home directories are being replicated via drbd but I can't do that with the passwd/group files. I am sure there is probably an NIS or other solution but I admit I know nothing about that stuff, I am not really a full admin and as usual I have a tight deadline.

Any ideas other than sending out mail saying don't create users or install software on these machines?

regards,

Doug
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
question about tor and unique website hits paul_mat Linux - Networking 1 01-23-2007 02:50 AM
question about useradd hongxing Linux - Software 4 11-14-2005 07:00 AM
useradd command question hct224 Linux - Newbie 2 06-14-2004 04:47 PM
unique usb harddrive question joesbox Linux - Hardware 2 04-25-2003 06:24 PM
Another Dual Boot Question *Unique Situation* jonDough Linux - Newbie 10 03-16-2003 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:00 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
Open Source Consulting | Domain Registration