Share your knowledge at the LQ Wiki.
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 08-28-2009, 11:01 PM   #1
Registered: Jul 2009
Posts: 41

Rep: Reputation: 15
AIX : Two entries with the same username in /etc/passwd

Hi there, I am a newbie to Unix-based system.

I am using AIX 5.3

Has anyone experienced if we create two entries with the same username in /etc/passwd (by editing text)?

What are the problems if we do that?



Thanks in advance
Old 08-28-2009, 11:30 PM   #2
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
I'm going to guess that only one of the accounts is going to be able to log in. (my guess is first match, '456' in your example)

Permissions in the file system are stored as the uid so you could chown files as either '456' or '789' and they would both show up as owned by 'quanba'. If you chown'd a file to 'quanba', again, i'm going to guess that it will resolve the uid as the first match in passwd ('456'). If you could manage to login as uid 789(not likely), you obviously wouldnt have access to the files owned by '456'.


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
No entries in /etc/passwd shorte85 Linux - Newbie 17 03-31-2009 07:21 PM
Best way to copy passwd entries rtcary Linux - Newbie 3 07-17-2005 01:42 PM
scrpit for finding out new entries in /etc/passwd icefairy83 Linux - Security 8 05-27-2005 11:35 AM
Default entries in /etc/passwd - Slackware J.W. Linux - Security 1 09-23-2003 04:15 PM
root passwd and username latika.gk Linux - Newbie 3 05-26-2003 06:24 AM > Forums > Linux Forums > Linux - Newbie

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