Operating System - HP-UX
1834497 Members
2928 Online
110067 Solutions
New Discussion

Re: Copying the /etc/passwd file to another system

 
SOLVED
Go to solution
dictum9
Super Advisor

Copying the /etc/passwd file to another system


I just installed a new system and need to make its /etc/ passwd file looks like the /etc/passwd on another system. Problem is, the other system is trusted and has the /tcb hierarchy tree.

The last time I tried this, I couldn't log in and had to go into single user mode and restore the old /etc/passwd.

How do I make one system look like another with regards to /etc/passwd and /etc/group?

Or do I need to create each user and group individually?

2 REPLIES 2
John Guster
Trusted Contributor
Solution

Re: Copying the /etc/passwd file to another system

1. convert target system as trusted system, 2. copy /etc/group over,
3. /etc/passwd over
4. make a tar file on /tcb on old system, untar this file on new one
5. make tar on /home on old system, untar it on new system.Assumming you want the same users on old one as on new one.
By then you should be able to login to the new system. If you want new system as non trusted system, then convert it back to non trusted through SAM which is the easy way.

Help help. Cheers.
Sp4admin
Trusted Contributor

Re: Copying the /etc/passwd file to another system

Hi Etc,

one more thing. Don't for get about the /home directory.

sp,