LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-28-2009, 11:01 PM   #1
quanba
Member
 
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?

e.g:

quanba:!:456:...
quanba:!:789:....

Thanks in advance
 
Old 08-28-2009, 11:30 PM   #2
JulianTosh
Member
 
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'.
 
  


Reply



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

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

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