Operating System - HP-UX
1834814 Members
2805 Online
110070 Solutions
New Discussion

How to resolve duplicate user names on trusted systems

 
SOLVED
Go to solution
Jack C. Mahaffey
Super Advisor

How to resolve duplicate user names on trusted systems

Here's my problem:
I have two entries in the passwd file that have the same login name but have different numerical user ids on a trusted system.
Example: User1:*:30:...
User1:*:31:...
I want to keep the user ids and rename the second login name. What do I need to do?
Unconverting back to an untrusted system is not an option right now.
3 REPLIES 3
RAC_1
Honored Contributor

Re: How to resolve duplicate user names on trusted systems

I think unconvert, vipw and convert is best option here. Immediately after convert do /usr/lbin/modprpw -V to avoid password expiry.

You can also edit the files under /tcb/auth/files to do that, but I think the first option is better. Make sure you run authchk after you ar edone with this.

Anil
There is no substitute to HARDWORK
Patrick Wallek
Honored Contributor
Solution

Re: How to resolve duplicate user names on trusted systems

There are a couple of ways to do this. You can go into SAM, Users and Groups, Users then select the user you want to modify, then go to the Actions menu and select modify. This will allow you to modify whatever you want for this user.

You can also modify the /etc/passwd file and /tcb files directly.

To modify the files go into 'vipw' modify the appropriate user name. The go into the /tcb/files/auth/? directory (where ? is the first letter of the user name). You can then either 1) change the name of the file (mv User1 User2) or 2) if the first letter of the user name changes then do 'mv User1 ../T/TUser1'.

Now the problem I could see is that there may only be 1 file in the /tcb structure since the user name is the same. You should do an ll and make sure that there are no non-printable characters in the user name that may cause you problems.
Jack C. Mahaffey
Super Advisor

Re: How to resolve duplicate user names on trusted systems

Patrick, thanks. Exactly what I was looking for. Wasn't sure working with the tcb files and passwd files was sufficiet.