Register a domain and help support LQ
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 10-22-2002, 12:11 AM   #1
LQ Newbie
Registered: Oct 2002
Posts: 6

Rep: Reputation: 0
Question Help with UIDs please :)

Let me preface this by saying that im admittedly a total newbie and in no way would claim to be anything other then that--course that would explain why im posting here.
Anyway I am curious to know what would happen if I edited the uid's in the /etc/passwd file so that multiple users had the same uid.

For example:
Is my computer going to ignite into a flaming ball :0?

And while im at it id like to know if a uid of say 200 would have some sort of differing access rights as someone with say 500 uid.

I appreciate the most newbized response I can get, as I again I am no expert at this at any level.
Old 10-22-2002, 03:47 AM   #2
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
I think that the system would treat them as the same user if they had the same number.

As for the difference between 200 and 500, I think the only one that makes a difference is root.... which has 0.
Old 10-22-2002, 08:48 AM   #3
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
I was waiting for someone else to respond with your answer Adam. I second his thoughts

A name is something for your eyes, so you don't go blind looking at numbers. I think the number (uid/gid) is your representation to linux as to what user/group it is.

As for the numbers being anything...

It's not going to be a big problem, as long as the uid is not already assigned to something/someone. The main thing on that is that "usually" your users (depending on your distro) are above 500. It doesn't mean that they will acquire super powers, and mind control if you place them lower, it's just that usually the lower numbers are reserved for the non-existent "service" users.

The exception, as noted by Adam, is root's uid, 0.

If you want your computer to have multiple users, but all of them have the same amount of access to each other's files (full access) then I would guess this would be the way to do it. Otherwise, you will probably be better off leaving them as seperate uid's.

This is the same answer as Adam just expanded a bit more

Old 10-22-2002, 10:27 AM   #4
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
This will work; however, it makes things a little difficult to track who did what on your system. I worked at place where the previous admin setup the accounts like this. It worked fine until one user created files that the others were not supposed to have access to. I had to go back and separate all the accounts to unique UIDs and put them in groups.
Old 10-22-2002, 12:33 PM   #5
LQ Newbie
Registered: Oct 2002
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you all

Thank you all for such great responses, god knows how many books I would have had to browse through for the answer to this question. You all saved me alot of time and trouble.

Actually I did want a group of people to have access to the same files, so far I have them all using separate Uids, but they are all in the same group. The owner of the shared directory that everyone is supposed to have full access to is the group. Is this how its supposed to be?

Anyway thank you all again for the help youve provided me. Ill definately be posting again. (And thank you for the non-technical response it helps alot )
Old 10-22-2002, 02:29 PM   #6
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
That sounds good to me (but then again, I haven't really gotten around to playing around with multiple users and groups).... does it work o.k.?

congrat's on finding LQ.... it's a really nice place to get help (as you've just found out)


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
SIDs and UIDs and RIDs! Oh My! (SAMBA) calabash Linux - Networking 0 08-10-2005 07:18 PM
two users with uids of 0 shanenin Linux - Security 2 03-04-2005 09:57 AM
How can I find and change UIDs k2merlinsix Linux - Networking 5 12-28-2004 03:15 PM
Multiple UIDS at the same time ? SiLiCoN Linux - General 3 12-17-2004 04:20 AM
samba - map winbind users to nis uids and gids bkurnik Linux - Networking 0 09-20-2004 06:47 AM

All times are GMT -5. The time now is 10:55 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