Date: Sat, 16 Dec 2000 12:29:49 +0800 (PHT) From: dwen Subject: Re: rsync hello, but im not good in programming. can you do that for me ? many thanks, dwen On Fri, 15 Dec 2000, you wrote: > On Sat, 16 Dec 2000, dwen wrote: > > > i have rsync installed and use it to update my "passwd" and "shadow" > > files, problem is the home directory ...i have to manually create the > > home directory of the new users coming from the main server to my mail > > server. how am i going to automate this using rsync ? > > ... run a cron process in the destination host, to do the > following: > > 1. save a copy of the password file as passwd.tmp > > 2. diff it against a file 'passwd.old' > > 3. if the diff is non-null, create a local home directory for > each newly added userid, found by the diff > > 4. rename passwd.tmp to passwd.old > > 5. exit > > Hope this helps ... >