Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Using rdist

The rdist package can be used to update files on a collection of hosts from a central host. This is what I do from Alpine (101.25) where the password and group files are maintained.

On Alpine (101.25) in /root/distfile I have the following:

  KTNET = ( inco punto cultus festival atomic brick prefect )

  FILES  = ( /etc/passwd /etc/shadow /etc/group /etc/gshadow 
             /etc/apt/sources.list /etc/printcap /etc/resolv.conf )

  ${FILES} -> ${KTNET} 
                  install -oyounger,chknfs,savetargets;

Thus I have seveb hosts that are updated with seven files from alpine. The options for install include: younger so that if the remote host has update the files they won't be updated from alpine, and instead I need to have a look at them to see what has changed; chknfs so that NFS mounted files are not updated; and savetargets so that old copies are placed in .OLD files so I can then compare what has changed!

The command to do the update is:

  # rdist -F -P /usr/bin/ssh

This will use ssh to communicate and will do it serially (-F) so that the passwords that are asked for don't interfere with each other!

Copyright © 1995-2006 [email protected]

  Published under the terms fo the GNU General Public License Design by Interspire