home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume24 / policy / 1stlogin.ann next >
Encoding:
Text File  |  1991-03-05  |  2.3 KB  |  79 lines

  1. # $Id: 1stlogin.ann,v 1.10 91/02/07 09:55:17 bbh Rel $
  2. # Tell the new user what the rules are:
  3.  
  4. # Give him a temp terminal for this script, which is run from /etc/profile:
  5. TERM=vt100
  6. export TERM
  7.  
  8. done=
  9. until [ "$done" = "yes" ];do
  10.     # Clear the screen
  11.     tput clear
  12.     cat << "END_PAGE_1"
  13.  
  14.                                 WELCOME!!!
  15.  
  16. First, you should invoke 'menu' from the command line, then select 'policy' 
  17. to review the basic policies which govern the operation of this system and
  18. who is responsible for what.
  19.  
  20. If a policy has provisions with which you do not agree, please notify the
  21. administrator AT ONCE voicing your concerns/suggestions. Absent such notice,
  22. you are assumed to have reviewed, understood, and agreed to conform to all
  23. written policy prevailing during any period you have authorized access to
  24. this host, as evidenced by your continuing to log in.
  25.  
  26. If policies are significantly changed at any time, you will be sent email
  27. to inform you that a change has been effected, *or* there will be an announce-
  28. ment in the system 'news' that will show up when you log in.
  29.  
  30. [ You are responsible for reading all system 'news' messages containing the
  31. word "policy", since these will contain information effecting specific policy 
  32. changes, which should occur rarely. ]
  33.  
  34. END_PAGE_1
  35.         echo "                                     (Touch 'RETURN' to continue)"
  36.     read nothing
  37.     cat << "END_PAGE_2"
  38.  
  39. An initial .profile and .kshrc are provided for your convenience. If you 
  40. want to see the special (read "usenet") features available on this machine,
  41. most of them have man pages, and 'manlist' will give you a brief list of
  42. what non-AT&T commands are available. Detail, of course, can be gotten
  43. by reading the man pages themselves.
  44.  
  45. Again, welcome to 'mtek' - if we can assist you in any way, please let us
  46. know!
  47.  
  48. END_PAGE_2
  49.  
  50.     echo "Do you wish to re-read this message? [y]/n > \c"
  51.     read done
  52.     case $done in
  53.          y*|Y*|"") # No -wants to see it again
  54.                 :
  55.             ;;
  56.                 *) # He's done
  57.                 done="yes"
  58.                 break
  59.             ;;
  60.     esac
  61. done
  62.  
  63. # Make a permanent record that this user has seen this announcement
  64. record="$HOME/..."
  65. echo "Announcement presented to this user, '$LOGNAME.'" > $record
  66. chmod 440  $record
  67. chgrp root $record 
  68. chown root $record 
  69.  
  70. # Clear the screen
  71. tput clear
  72.  
  73. # Take away the temp terminal (user's .profile will supply the real one
  74. # hereafter):
  75. TERM=
  76. export TERM
  77.  
  78. # end of file
  79.