2 ################################################################################
5 # Description: Generates a new ~/.rhosts file
6 # Author: Andrew@DeFaria.com
7 # Created: Fri Apr 30 14:13:56 PDT 1999
11 # (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved
13 ################################################################################
14 # Set me to command name
18 adm_base=${adm_base:-$HOME/adm}
21 adm_fpath=${adm_fpath:-$adm_base/functions}
26 # Source in tmpfiles function
27 tmpprefix=${TMPDIR:-/tmp}/$me.$$
29 trap cleanup INT EXIT ERR
33 error "You should not run the script as root!" 1
37 rhosts_loc=$HOME/.rhosts.loc
39 # Generate new $rhosts
41 if [ -f $rhosts_loc ]; then
42 cp $rhosts_loc $rhosts
48 print "+@all-machines $LOGNAME" >> .rhosts
50 # Insure proper permissions
53 # Tell user of this scripts demise
54 display "\t\t\t*** NOTICE ***"
56 display "Since the lab now users NIS we are employing a different solution"
57 display "to the issue of providing passwordless logins to sets of machines"
58 display "via rlogin/remsh. This solution adds the following to $rhosts:"
60 display "\t+@all-machines $LOGNAME"
62 display "Thereafter running $me is unnecessary."
64 display "I'd like to take this opportunity to thank you for your support"
65 display "of $me! :-) <Andrew@DeFaria.com>"