1826780 Members
1427 Online
109702 Solutions
New Discussion

Re: Transfer users

 
SOLVED
Go to solution
enrico.nic
Regular Advisor

Transfer users

Hi

I need to transfer all users from one machine (with hp-ux 11.0) to a new server (with hp-ux 11.11). Both are trusted systems.

Is it enough to copy:
/etc/passwd
/etc/group
/tcb/files/auth

from one machine to the other ?

Thank you

Enrico
3 REPLIES 3
Rainer von Bongartz
Honored Contributor
Solution

Re: Transfer users

that will be sufficient

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Patrick Wallek
Honored Contributor

Re: Transfer users

Yes, that will work. Don't forget to copy the users home directories though.

You might want to consider just copying the normal users and omit id's like root, daemon, lp, etc. (the system ids).
A. Clay Stephenson
Acclaimed Contributor

Re: Transfer users

That will work although you also need the users' home directories. Your transfer method is not the supported way of untrusting, copying the passwd and group files, and then trusting but it does work and retains all data. You should, of course, be logged in as root in at least two sessions and have backup copies of the files so that you can get yourself out of trouble as fast as you got yourself in.
If it ain't broke, I can fix that.