tpersky@suntory.dcrt.nih.gov (Ted Persky) (07/27/90)
remap -an -i ignfile -u userdflt -g grpdflt startdir newpasswd newgrp [oldpasswd oldgrp] Remap is a utility to traverse a given file subtree starting at "startdir", mapping uid's in "oldpasswd" to those in "newpasswd" and gid's in "oldgrp" to those in "newgrp". Because remap issues chown calls to do its work, the program must have an effective user id of "root" to succeed. It comes complete with man pages and makefiles. We have found it a convenient tool to synchronize accounts on all of our workstations so that each user name has the same uid and gid on all systems. A compressed tar-image format may be obtained by "ftp"ing to alw.nih.gov. From there, change directory to "pub/remap" and get the file "remap.tar.Z". The first page of either "remap.c" or "regroup.c" gives further information on printing out the man pages and on building the programs. This utility has been tested on the following architectures: AOS -- IBM RT's SILICON -- Silicon Graphics Workstations running Irix AIX -- IBM 3090 CONVEX -- Convex BSD 4.2 SUNOS -- Sun 3/50, 3/60, Sun 4, 386i, Sparc Workstations ULTRIX -- MicroVax, DECStations Another site has completed ports to the Cray YMP, Amdahl UTS, and Concentrix Alliant. Any questions may be directed to the author at "tpersky@alw.nih.gov". Ted Persky phone: (301) 496-2963 Building 12A, Room 2031 uucp: uunet!nih-csl!tpersky National Institutes of Health Internet: tpersky@alw.nih.gov Bethesda, MD 20892