Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create duplicate user account 1

Status
Not open for further replies.

kmd808

Programmer
Mar 21, 2003
6
US
i want to be able to create a duplicate user account. we have user accounts on the system with the same 'user id'. i want to be able to have 2 user on the system with the same user id. currently we have 2 'dev' users on the system with the same 'user id'. not sure how it was created, but i would like to know how to do it.
 
Hi,

to do what you want to do, you'll need to create a normal user account with any uid.

Then change that uid as another which already exists directly editing /etc/hosts


good luck
 
Keep in mind that this could be a security violation
 
Furthermore a side effect of having 2 users with the same UID is to have effectively only one HOME directory, unless you don't modify the .profile
Infact AIX searches user info by UID instead by username, so the first entry which solves the UID is selected
 
You can have two users with the same UID and specify different HOME directories for them. I do this when I have different versions of Oracle, for example. I'll have my oracle user with a UID of 100. Then ora817 with UID of 100, and ora9i with UID of 100. Because the oracle user is the first in the /etc/passwd file, all files are listed as being owned by oracle. I've never had any problems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top