We have an older server and try to move the content to a new LPAR on
another machine. We install all the necessary s/w to new server, and
now it is time to copy the web content to the new server. However at
this point, we want to keep the ownership, group, history information
for those files. That's why we use the -p option of scp. However, all
the necessary account information should also exist in the new system
as well, o.w. we will see just user and group id's instead of their
names. How can we handle this issue? I mean, the best practice is to
copy the passwd, group and some other files under security folder
(opasswd, ouser, etc.) to the new server? Or is there any practical
import/export mechanism in AIX?
Thanks for you help, best regards
-koc
it's a bit of a nightmare - we have all our users and groups added as
part of our standard build.
mksysb ?
you can automate this pretty easily. do some scripting with
lsgroup/lsuser on the source system, choose the attributes you need and
generate the corresponding mkgroup/mkuser commands to be run on the
target system. For defaults look at /usr/lib/security/mkuser.*
regards
Joachim