From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f36c62fdc1237efa,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-08-12 08:10:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!12.152.242.135!not-for-mail From: "dJon'Z" Newsgroups: comp.unix.tru64 Subject: best way to synch passwd file between 2 systems Date: Mon, 12 Aug 2002 11:10:54 -0400 Message-ID: Reply-To: "dJon'Z" NNTP-Posting-Host: 12.152.242.135 X-Trace: fu-berlin.de 1029165056 42936297 12.152.242.135 (16 [126742]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.unix.tru64:8371 I've just set up a TruCluster v1.6 on two Tru64 4.0g boxes. Since I've got two separate systems with two /etc/passwd files to maintain, I want to regularly synch the two files. My thought is to run a cron script daily, use rsh and rcp to check which version is newer, and copy that version to the second system. It's not foolproof, but I'm not worried if the cluster switches hosts since I'll know that. I may have an id or two that in not synched due to the timing of the file copy, but that is a very minor issue. My question is: can I copy the password file without a problem? I know I should use vipw to edit the file and have it maintained, which got me wondering if I could overlay the /etc/passwd file or do I need to do something special? I recall something about a makehash command and think I may need this as well. Anyone have any thoughts, or better ideas, to keep my two systems at the same user password level? thanks - Dale