I need to merge the passwd files on two systems on a regular basis.
One runs HP/UX and the other runs SunOS. No shadow passwds in use.
Wondering if someone has already written some scripts (awk,perl,sh?)
that might do this.
The Sun needs to get every account, except the system accounts, that
exists on the HP. The HP does not need the accounts from the Sun. The
Sun also needs some additional accounts that aren't kept on the HP (ie,
locally added on the Sun and not in the HP passwd file). So
essentially what I need is something that can take the HP passwd file
and integrate it into the Sun passwd file -- if any new or changed
entries appear in the HP passwd file, they get added/replaced in the
Sun passwd file.
A script to do the merging properly is all I am looking for.
The Sun can trust the HP completely.
NIS/YP need not apply.