home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Security / lpr-wrapper-1.0.1-MIHS / lpr-wrapper.pkg / lpr-wrapper.post_delete < prev    next >
Encoding:
Text File  |  1997-06-26  |  511 b   |  28 lines

  1. #!/bin/sh
  2. #
  3. # Written by TjL <luomat@peak.org>
  4. #
  5. # Generous help, corrections, and suggestions 
  6. # by Rex Dieter <rdieter@math.unl.edu>
  7. #
  8. #
  9. # This script operates after the lpr has been deleted
  10. # and makes sure that the original file exists
  11. # and is given the right ownership and permissions
  12.  
  13.  
  14. if [ ! -r /usr/ucb/lpr.orig ]
  15. then
  16.     echo "Cannot find /usr/ucb/lpr.orig"
  17.     exit 1
  18. fi
  19.  
  20. /bin/mv /usr/ucb/lpr.orig /usr/ucb/lpr
  21.  
  22. /etc/chown root.daemon /usr/ucb/lpr    
  23.  
  24. chmod 4711 /usr/ucb/lpr
  25. chmod g+s /usr/ucb/lpr
  26.  
  27. exit 0
  28.