Showing results for 
Search instead for 
Did you mean: 

Transfering C2 users

Occasional Advisor

Transfering C2 users

I have 2 alpha servers, acting as primary and data base replicant secondary, for disaster recovery - the problem is both need to run C2 and if primary fails the user passwords on the secondary will not be the same, is there any way of copying user accounts + passwords to the secondary server?

Thanks in advance

Victor Semaska_3
Esteemed Contributor

Re: Transfering C2 users

To have it done automatically, you'd have to set up NIS (Network Information Service). Refer to the 'Network Administration: Services' manual for details.

To do it manually, this is how I've done it:

On the primary server:
# /tcb/bin/edauth -d p -g > /tmp/p.auth

Copy /tmp/p.auth to the secondary server.

On the secondary server:
# cat /tmp/p.auth | /tcb/bin/edauth -d p -s

There are 10 kinds of people, one that understands binary and one that doesn't.
Venkatesh BL
Honored Contributor

Re: Transfering C2 users

You can probably put both the commands in a script and run it as a 'cronjob'