Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Thank you all for the quick answers. Right now I'm trying rsync, and it's working. I did the following: crontab -u root -l # Sincronize Users */5 * * * * test -d /drbd/home/ && (rsync -a /etc/passwd /etc/shadow /etc/group /etc/gshadow server2:/etc/) && (rsync -a /etc/samba/smbusers /etc/samba/smbpasswd server2:/etc/samba/) And did the same in server2 (using server1:/...) (Of course, first I had to exchange public keys, in order to use SSH without providing the password.) I think this will be sufficient, since all the user/group changes will happen in the primary server. Thanks anyway. -----Original Message----- From: drbd-user-bounces at linbit.com [mailto:drbd-user-bounces at linbit.com] On Behalf Of Bernd Petrovitsch Sent: sexta-feira, 29 de Fevereiro de 2008 12:32 To: drbd-user at linbit.com Subject: RE: [DRBD-user] file owner and group changing after switch over On Fre, 2008-02-29 at 11:40 +0000, Rui Meireles wrote: > Hello, > I have the same problem, but since I have /home directories in the /drbd > partition, I have lots of users to sincronize by hand... > > Is there a better way for me to sincronize these files in both servers? > /etc/passwd > /etc/shadow > /etc/group > /etc/samba/smbpasswd > /etc/samba/smbusers > ... > > And, if possible: > - create a user/group in the secondary (with same UID/GID) when I create it > in the primary > - change the password in the secondary when I change it in the primary > ... Depends on your environment: - Update your user and group creation scripts to modify both. - maintain a master copy somewhere and copy it automatically/periodically - use LDAP for users and groups Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156 fax: +43 1 7890849-55 Embedded Linux Development and Services _______________________________________________ drbd-user mailing list drbd-user at lists.linbit.com http://lists.linbit.com/mailman/listinfo/drbd-user