1. #!/bin/bash
  2.  
  3. # Author: Ryan Lewis
  4. # Date: Mon Feb 20, 2006
  5. # passwd-sync: Syncronizes the local passwd file to the master AFS
  6. #              passwd file on /afs
  7.  
  8.  
  9. CAT=`which cat`
  10. RM=`which rm`
  11.  
  12. $RM -f /etc/passwd
  13. cp /etc/passwd.backup /etc/passwd
  14. # $CAT /afs/clarkson.edu/common/etc/passwd.Linux >> /etc/passwd
  15. $CAT /etc/passwd.afs >> /etc/passwd
  16.