LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-29-2009, 12:01 AM   #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-29-2009, 12:30 AM   #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


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


All times are GMT -5. The time now is 02:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration