1846140 Members
4558 Online
110254 Solutions
New Discussion

Re: Password Replication

 

Password Replication

Is there some form to made a replication from /etc/passwd??
Because, we have 8 severs, and some users have user id in all servers.
PS: without use NIS.
Thanks ???
rodriguescj
6 REPLIES 6
Christopher McCray_1
Honored Contributor

Re: Password Replication

Hello,

You can copy the passwd file and, if a trusted system, the /tcb/auth/files directory to the other servers.

Note:

Make copies of these first before doing. Also, I must point out that this isn't very secure.

Chris
It wasn't me!!!!
Rich Wright
Trusted Contributor

Re: Password Replication

We just copy the /etc/passwd file to all of our systems.
This has worked good for us.
Your problem will be that UID numbers may not be the same across all servers for each user name. If you can get them in sync, then it will be easy.
Otherwise, your copy will have to update only the second field of the /etc/passwd file.
When users change their password, it will have to be on the source server or it will be lost when the next copy occurs.

Good Luck, this can be a tough task.
Fragon
Trusted Contributor

Re: Password Replication

Hi,there
Of course you can do this. But in order to keep the original attribution and permission, please always assign "-p" parameter if you use cp or rcp to copy this file.

-Gerald-

James Beamish-White
Trusted Contributor

Re: Password Replication

I wouldn't start using rcp for copying such a sensitive file as the passwd file - too easy to snoop.

Why not NIS/NIS+? It sounds like it would solve your problem...

Otherwise, you might have to try doing something with PAM and a central password datastore like LDAP.

Cheers,
James
GARDENOFEDEN> create light
Christopher McCray_1
Honored Contributor

Re: Password Replication

Hello again,

I just posted this to rectify a mistake.

The directory should read /tcb/files/auth , not /tcb/auth/files

Thank you and good luck

Chris
It wasn't me!!!!
Martin Johnson
Honored Contributor

Re: Password Replication

If you are going to copy /etc/passwd be sure to also copy /etc/group.

HTH
Marty