home *** CD-ROM | disk | FTP | other *** search
/ CD-X 3 / cdx_03.iso / shutils / dos / sentry22.arj / README.TXT < prev    next >
Encoding:
Text File  |  1995-09-06  |  69.2 KB  |  1,564 lines

  1.                              ╓────────────╖
  2.                              ║ Sentry 2.2 ║
  3.                              ╙────────────╜
  4.                             Michael A. Bobbitt
  5.                           Mike.Bobbitt@AcadiaU.Ca
  6.                http://dragon.acadiau.ca/~910318b/Sentry.html
  7.  
  8.         TABLE OF CONTENTS
  9.  
  10.         1.0 Introduction
  11.             1.1 Purpose of Sentry
  12.                 1.1.1 In the Home
  13.                 1.1.2 In the Business Environment
  14.             1.2 Features of Sentry
  15.                 1.2.1 General
  16.                 1.2.2 Expiry Dates
  17.             1.3 Distribution of Sentry
  18.  
  19.         2.0 Setup
  20.             2.1 General Setup Issues
  21.             2.2 The Initial Login
  22.             2.3 First Priorities
  23.             2.4 Using the SENTRY.INI file
  24.                 2.4.1 Modifying Your AUTOEXEC.BAT
  25.  
  26.         3.0 Securing Your Computer
  27.             3.1 BIOS Password
  28.             3.2 Boot Sequence
  29.             3.3 Switches in CONFIG.SYS
  30.             3.4 Passwords
  31.             3.5 The Password File
  32.             3.6 Placement in AUTOEXEC.BAT
  33.             3.7 Keep a Backup
  34.  
  35.         4.0 Logging In
  36.             4.1 The Login Procedure
  37.             4.2 Changing Passwords
  38.  
  39.         5.0 The SuperUser Menu
  40.             5.1  Create User
  41.             5.2  Delete User
  42.             5.3  View Users
  43.             5.4  Toggle SuperUser Status
  44.             5.5  Change Account Exipry Date
  45.             5.6  Change Password Expiry Date
  46.             5.7  View Log File
  47.             5.8  Change Account Password
  48.             5.9  Assign Max Invalid Logins
  49.             5.10 Exit
  50.  
  51.         6.0 Using Sentry With Windows
  52.  
  53.         7.0 Securing Other Programs
  54.             7.1 General
  55.             7.2 Setup
  56.  
  57.         8.0 Creating a new Instance of Sentry
  58.  
  59.         9.0 Registration
  60.  
  61.         10.0 Revision History
  62.              10.1 Pre-Release Notes
  63.              10.2 Sentry V1.0
  64.              10.3 Sentry V1.1
  65.              10.4 Sentry V1.2
  66.              10.5 Sentry V1.3
  67.              10.6 Sentry V1.4
  68.              10.7 Sentry V2.0
  69.              10.8 Sentry V2.1
  70.              10.9 Sentry V2.2
  71.  
  72.         11.0 Technical Notes
  73.              11.1 Encoding Algorithm
  74.              11.2 Time Stamps
  75.              11.3 Files
  76.              11.4 File_id.diz
  77.              11.5 General
  78.  
  79.         12.0 Potential Threats To Security
  80.              12.1 The Password File
  81.              12.2 Hardware Loopholes
  82.  
  83.         13.0 Troubleshooting
  84.              13.1 Error messages
  85.                   13.1.1  Error opening password file!
  86.                   13.1.2  Error opening temp file!
  87.                   13.1.3  Error in creating log file!
  88.                   13.1.4  Error opening log file!
  89.                   13.1.5  Error opening Sentry.ini file!
  90.                   13.1.6  Error in Sentry.ini file! [XXXXXXXX]
  91.                   13.1.7  Registration Error - Program Aborted!
  92.                   13.1.8  Error in time stamps.
  93.                   13.1.9  Out of memory!
  94.                   13.1.10 This account has expired.
  95.                   13.1.11 Internal Window Error.
  96.              13.2 Other problems
  97.  
  98.         15.0 Standard Disclaimer
  99.  
  100.         16.0 Credits
  101.  
  102.                            ========================
  103.  
  104.  
  105.         1.0 Introduction
  106.         ================
  107.  
  108.         Currently, almost all fields of computer security are growing
  109.         and advancing, with a few notable exceptions. Networks, servers
  110.         and public access systems are all tightening their access to
  111.         avoid potential problems. But what of the single-user PC? Is the
  112.         information contained on these any less valuable? Often times
  113.         not, yet adequate security programs do not exist for PC's. In my
  114.         search for security, I discovered that PC's were virtually
  115.         ignored, and those programs that did exist were weak and faulty.
  116.         Faced with this situation, I decided to write my own security
  117.         program from scratch, incorporating the tightest security
  118.         measures possible, while allowing flexible, easy use.
  119.  
  120.  
  121.         1.1 Purpose of Sentry
  122.  
  123.         Sentry is meant for one basic purpose only: to keep unwanted
  124.         people off your PC. It is flexible enough that this single
  125.         purpose can be used in many different ways, for many different
  126.         reasons. Here are just a few.
  127.  
  128.         1.1.1 In the Home
  129.  
  130.         Most people have something on their home PC that they don't want
  131.         others to see. Maybe it's a sensitive document, maybe it's
  132.         copies of e-mail, or maybe you just want to keep track of who is
  133.         using your system. Sentry has the solution for all of these
  134.         problems, by restricting access and logging all attempts to use
  135.         the system.
  136.  
  137.         Alternatively, sometimes you just want to keep people out,
  138.         period. It could be your nosy room mate, your little brother, or
  139.         your boss at work. In any case, Sentry will keep them out, while
  140.         letting a select group of people in.
  141.  
  142.         1.1.2 In the Business Environment
  143.  
  144.         Businesses will find Sentry valuable to guard against
  145.         unauthorized entry into PC's. With Sentry, you can leave your
  146.         terminals unattended while knowing that nobody can access the
  147.         information held on them, unless you want them to. Many
  148.         businesses have cleaners or other independant contractors come
  149.         in during silent hours. A lot of businesses have PC's in open
  150.         areas where a "passer-by" could use them. There's no guarantee
  151.         that these people won't attempt to use your PC's when your're
  152.         not around.
  153.  
  154.         For businesses that work in groups, Sentry is useful for keeping
  155.         track of who used the PC's and when. Supervisors could have
  156.         SuperUser access on all PC's in their group, allowing them to
  157.         manage and control access as required. Also, the log that Sentry
  158.         keeps could be a valuable tool in determining who was doing
  159.         what, and when.
  160.  
  161.         You may not need to use Sentry on your system. You might never
  162.         have a security problem to worry about. But the truth is that
  163.         Security isn't something to take a chance on. It is a serious
  164.         problem in today's computing society, and many legitimate users
  165.         find themselves helpless or confused about the real issues. It
  166.         is a shame that the immoral few have ruined it for the rest, but
  167.         we cannot let them get in the way of our daily business. With
  168.         the proper tools and knowledge, we can fight back by closing up
  169.         the common loopholes that attackers use.
  170.  
  171.  
  172.         1.2 Features of Sentry
  173.  
  174.         1.2.1 General
  175.  
  176.         Sentry will allow you to set up accounts on your computer, one
  177.         account for each person you want to have access. If someone
  178.         doesn't have an account, they don't get in. It's that simple.
  179.         Each person has their own account, with their own password,
  180.         making it easy to track who logs in and when. Since Sentry
  181.         doesn't use a "master access" password, you can wipe a single
  182.         users account without affecting any other users.
  183.  
  184.         Sentry records each login attempt in a log file which can be
  185.         viewed by a SuperUser at any time.
  186.  
  187.         1.2.2 Expiry Dates
  188.  
  189.         You can set accounts to expire on a certain date, effectively
  190.         barring access to the specified user after that. For example, if
  191.         you know that Joe will be leaving on April 14th, you can set his
  192.         account to expire on April 15th. That means you don't have to
  193.         remember to delete his account on the 15th... It will expire on
  194.         it's own, and you can delete it whenever you remember.
  195.  
  196.         You can also set expiry dates for passwords, meaning that a user
  197.         will have to enter a new password once his old one has expired.
  198.         In addition, you can set the period of time that new passwords
  199.         are good for.
  200.  
  201.         Sentry can be used to restrict access when you first turn on
  202.         your PC, to block DOS access from within Windows, to secure a
  203.         single program from general use, or any combination of the
  204.         above.
  205.  
  206.  
  207.         1.3 Distribution of Sentry
  208.  
  209.         Sentry is a copywritten piece of work, however distribution of
  210.         the ShareWare version is allowed and encouraged. The only
  211.         stipulation is that it must be unmodified, and must contain all
  212.         of the original files (and no others). Essentially, the .zip
  213.         file you initially recieved is the only format that Sentry is
  214.         distributable in.
  215.  
  216.         DO NOT distribute any registered versions whatsoever. (By
  217.         distributing a registered version, you are giving out copies of
  218.         a specific encoding scheme, which can be used against the
  219.         registered user).
  220.  
  221.  
  222.         2.0 Setup
  223.         =========
  224.  
  225.         Since you are reading this, I can safely assume you have
  226.         unzipped Sentry. Along with that, I will also assume that you
  227.         have created a directory for Sentry, and that all Sentry files
  228.         are currently in it. (If this is not true, do it now). You may
  229.         want to read the section entitled "Creating a new Instance of
  230.         Sentry" below.
  231.  
  232.         Please note that there are no "quick install" instructions
  233.         provided. This is because all the information in this section is
  234.         considered critical and should be read over thoroughly before
  235.         attempting to run Sentry.
  236.  
  237.  
  238.         2.1 General Setup Issues
  239.  
  240.         The very first thing you should do is make sure you keep a copy
  241.         of all the Sentry files somewhere safe. Copying them to a floppy
  242.         disk and storing it is a good idea.
  243.  
  244.         The second thing you have to do is to set up the Sentry.ini file
  245.         for your system. You should load the file into a text editor
  246.         (like MS-DOS's edit) and make the changes from there. There are
  247.         instructions and tips provided for each item. Make sure you read
  248.         and understand these instructions before making any changes, as
  249.         an improperly set up Sentry.ini file can cause errors and
  250.         security loopholes.
  251.  
  252.  
  253.         2.2 The Initial Login
  254.  
  255.         Now the next thing you must do is to change the password and
  256.         login provided with the initial copy of Sentry. To do this, you
  257.         must run the Sentry.exe program. If it displays an error
  258.         message, check the troubleshooting section at the end of this
  259.         file.
  260.  
  261.         When it asks for a login, use "Sentry", with the password
  262.         "Sentry". You can turn case sensitivity off in the Sentry.ini
  263.         file, but for logins only. The password must be entered exactly
  264.         as shown (sentry or SENTRY will not work). The Sentry account
  265.         has SuperUser access, meaning you can create and delete accounts
  266.         while logged in as Sentry. To log in as a SuperUser, enter
  267.         Sentry for a login, and instead of pressing enter, hold down the
  268.         CONTROL key and press enter. This tells the Sentry program that
  269.         you want to log in as a SuperUser. Then enter your password
  270.         normally, and instead of dropping to DOS, you will go to the
  271.         SuperUser menu. (See the section below on "The SuperUser Menu"
  272.         for more information).
  273.  
  274.         From here, you should create a new user (you) and grant yourself
  275.         SuperUser access. You can do this during creation by holding the
  276.         CTRL key while pressing enter after typing your login name. You
  277.         can also do this by using the "Create User" option normally and
  278.         then using the "Toggle SuperUser Access" menu option to give
  279.         yourself SuperUser privileges.
  280.  
  281.  
  282.         2.3 First Priorities
  283.  
  284.         Once you have your account set up, you should delete the Sentry
  285.         account, so nobody else can use it. This is very important as a
  286.         potential intruder will probably try to enter through the
  287.         default Sentry account first. (If you delete it, that closes the
  288.         loophole).
  289.  
  290.         Sentry will not let you delete the last SuperUser, so you must
  291.         create a new user with SuperUser access before deleting the
  292.         Sentry account.
  293.  
  294.         From here, you can create the other users of your system, and
  295.         define their starting passwords, expiry dates and access rights.
  296.         See the section below on "The SuperUser Menu" for more
  297.         information.
  298.  
  299.  
  300.         2.4 Using the SENTRY.INI file
  301.  
  302.         Sentry can be configured to your needs by way of the SENTRY.INI
  303.         file. This file contains information that you may wish to
  304.         change, allowing Sentry to adapt to many different situations.
  305.  
  306.         The SENTRY.INI file follows a very specific format, and if you
  307.         deviate from it, Sentry will not work! Comments are allowed, as
  308.         long as the comment line begins with a * character. Blank lines
  309.         are also permitted. The order of the items in the Sentry.ini
  310.         file is critical. Do not move items around. The comments
  311.         provided with the Sentry.ini file will guide you through this
  312.         stage. Feel free to add your own comment lines as you see fit.
  313.  
  314.         2.4.1 Modifying Your AUTOEXEC.BAT
  315.  
  316.         Simply add the following lines to the top of your AUTOEXEC.BAT
  317.         file:
  318.  
  319.         ----------------- CUT ----------------
  320.         cd c:\Sentry
  321.         Sentry
  322.         cd c:\
  323.         ----------------- CUT ----------------
  324.  
  325.         The above example assumes you have installed Sentry on
  326.         c:\Sentry, which may not be true. Adjust the path in the first
  327.         line to reflect the location of Sentry on your system.
  328.  
  329.         NOTE: These lines MUST be the first lines in your autoexec.bat
  330.         file. If not, the user may be given a chance to bypass Sentry by
  331.         pressing CTRL-C or CTRL-BREAK.
  332.  
  333.  
  334.         3.0 Securing Your Computer
  335.         ==========================
  336.  
  337.         Sentry is essentially useless unless you take the appropriate
  338.         additional security measures for your machine. Below I have
  339.         outlined some of the things you can do to increase the security
  340.         of your system.
  341.  
  342.  
  343.         3.1 BIOS Password
  344.  
  345.         Protect your BIOS! It has a built in password, so set it!
  346.         Without the password, any user can get into your BIOS and change
  347.         your critical system settings. I have seen several different
  348.         types of BIOS setups, but generally, you use the CHANGE PASSWORD
  349.         command (Sometimes also listed as SUPERVISOR PASSWORD) from the
  350.         main menu and set the SECURITY OPTION to setup (as opposed to
  351.         system) in the BIOS FEATURES SETUP screen. Depending on the
  352.         layout of your BIOS, you may have a CHANGE SETUP PASSWORD option
  353.         right on the main menu.
  354.  
  355.  
  356.         3.2 Boot Sequence
  357.  
  358.         Change your boot sequence. Again, in your BIOS, under the BIOS
  359.         FEATURES SETUP screen, set your BOOT SEQUENCE to boot from your
  360.         hard drive first. (This usually means set it to C,A as opposed
  361.         to A,C). This will ensure that no-one can bypass Sentry by means
  362.         of a boot disk.
  363.  
  364.  
  365.         3.3 Switches in CONFIG.SYS
  366.  
  367.         Add "switches /n/f" as the first line of your CONFIG.SYS file.
  368.         The /n will dis-allow pressing F8 to step through the CONFIG.SYS
  369.         and AUTOEXEC.BAT files. This means that users cannot bypass
  370.         Sentry by this method. The /f switch is optional, it simply
  371.         speeds up your boot-up time (by about 2 seconds).
  372.  
  373.  
  374.         3.4 Passwords
  375.  
  376.         Pick a good password. Short passwords are a bad idea, as well as
  377.         birthdays, girlfriends names, etc. Anything that is easy to
  378.         guess should be avoided. Good passwords are not words at all,
  379.         but made up from a "mnemonic" sentence. For example, the
  380.         sentence "I'll wait for you" turns into "illw84u" (trust me).
  381.         Mixing letters and numbers increases the security of a password,
  382.         and passwords of this type are near impossible to guess or
  383.         crack. Do not write your password down, especially near your
  384.         computer. Try to memorize it if possible. Change your password,
  385.         but not too often. People who change their passwords too often
  386.         (less than 6 months or so) tend to write them down, which is a
  387.         bigger risk. Don't enter your password with someone looking over
  388.         your shoulder. If someone is in the room, block their view, or
  389.         wait until they leave.
  390.  
  391.  
  392.         3.5 The Password File
  393.  
  394.         Put your password file in a safe place. Although passwords are
  395.         encoded, usernames and time stamps are not. Also remember, the
  396.         encoding scheme is one way only, so if I encode login names, you
  397.         will never be able to view who is in your password file (IE: you
  398.         would have to "guess" which person to delete). Users can change
  399.         time stamps in the password file, and this can cause serious
  400.         problems, so KEEP IT SAFE!
  401.  
  402.         NOTE: Sentry automatically hides your password file for you.
  403.         After you have run Sentry once, your password file (and log
  404.         file) will not appear in directory listings. This will help your
  405.         security, but is not a fool-proof method.
  406.  
  407.  
  408.         3.6 Placement in AUTOEXEC.BAT
  409.  
  410.         When you are installing Sentry, make sure it is the FIRST file
  411.         in your AUTOEXEC.BAT! Otherwise, the user may be able to exit
  412.         when another program is running and avoid Sentry all together!
  413.  
  414.  
  415.         3.7 Keep a Backup
  416.  
  417.         Keep a backup copy of all your Sentry files! Especially your
  418.         password file! If something happens to these files, you may be
  419.         locked out your computer if you don't have a backup.
  420.  
  421.  
  422.         4.0 Logging In
  423.         ==============
  424.  
  425.         4.1 The Login Procedure
  426.  
  427.         When you first run Sentry, you should see the standard startup
  428.         screen. Your registration information is contained here. (The
  429.         shareware release simply says it is registered to Shareware).
  430.         You should also see a prompt asking you to enter your login (or
  431.         user name). If instead you see an error message, check at the
  432.         end of this file for help.
  433.  
  434.         While entering your user name, if you have SuperUser access, you
  435.         can log in as such. You can do this by holding down the CTRL key
  436.         while pressing enter. If you do not have SuperUser access, or do
  437.         not wish to log in as such, simply press enter. In either case,
  438.         this will send you to the password prompt.
  439.  
  440.         Once you have reached the password prompt, you simply enter your
  441.         password, and hit enter when you are finished. Your password is
  442.         not echoed to the screen. At this time, the date and time of
  443.         your last login will be displayed.
  444.  
  445.         The minimum and maximum length of both the login and password
  446.         are set by the "MinPasswordLen" and "MaxPasswordLen" attributes
  447.         in the Sentry.ini file respectively.
  448.  
  449.         *** NOTE: Due to restrictions with the encoding scheme, only the
  450.         first 8 characters of the password are treated as being
  451.         significant. That means that "password" acts exactly the same as
  452.         "password_over_8" or basically "password*" where the * is
  453.         anything. Settings of over 8 for the MaxPasswordLen attribute in
  454.         the Sentry.ini file are therefore only valid for the login
  455.         lengths.
  456.  
  457.         If there have been any invalid login attempts made against your
  458.         account since the last valid login, you will be told so, and how
  459.         many. If the number of invalid login attempts against your
  460.         account has exceeded the maximum allowed, your account will be
  461.         locked out until the SuperUser resets it.
  462.  
  463.         If your account has expired, it will say so, and subsequently
  464.         lock you out. If your password has expired, it will also say so,
  465.         but will then prompt you to enter a new password. You may not
  466.         re-use your old password, and you must pick a password that
  467.         corresponds to the length limits set out in the Sentry.ini file.
  468.         Once you have entered and verified your new password, it is
  469.         given a new expiry date according to the "PasswordExpiresIn"
  470.         value in the Sentry.ini file.
  471.  
  472.         If you have logged in as a SuperUser, and have SuperUser access,
  473.         you will now be in the SuperUser menu (see the section below).
  474.         If not, you will simply be dropped to DOS, and the login
  475.         procedure is complete.
  476.  
  477.  
  478.         4.2 Changing Passwords
  479.  
  480.         If you wish to change your password at any time, you can do so
  481.         by entering the pass key. The pass key is defined in the
  482.         Sentry.ini file, and is displayed when Sentry starts up. To
  483.         change your password, simply enter your user name as usual, and
  484.         when prompted for your password, enter the pass key. You will
  485.         then be prompted for your old  password (to make sure it is
  486.         really you), and then you will be asked for your new password,
  487.         which will be verified and saved to disk. Your new password will
  488.         expire in the number of days designated by "PasswordExpiresIn"
  489.         in the Sentry.ini file.
  490.  
  491.         Changing your password has no effect on SuperUser access.
  492.  
  493.  
  494.         5.0 The SuperUser Menu
  495.         ======================
  496.  
  497.         5.1 Create User
  498.  
  499.         This option allows you to create users on your system. First of
  500.         all, you must enter the username (or login) you wish to assign
  501.         to that user. If you wish to create a user with SuperUser
  502.         status, type in the username and hold down the CONTROL key when
  503.         pressing enter. Otherwise, just press enter when you're finished
  504.         at the login prompt. Once that is complete, Sentry asks for the
  505.         password. The password is not echoed to the screen. The user
  506.         should choose and enter their own password. SuperUsers need not
  507.         know what the passwords are since they can still manage the
  508.         accounts without knowing them. The password is entered twice to
  509.         ensure no typos were made, and then saved to the password file
  510.         in encoded form. The ESCAPE key will abort this operation at any
  511.         time.
  512.  
  513.         Note: There is currently a maximum of 100 users allowed. This
  514.         limit can be bypassed if required (contact me for a larger
  515.         capacity version).
  516.  
  517.  
  518.         5.2 Delete User
  519.  
  520.         The delete option is very simple. It brings up a list of all
  521.         users, and you simply use the cursor keys to highlight the user
  522.         you wish to delete. SuperUsers are denoted by a * to the right
  523.         of their username. Press enter to select the appropriate user.
  524.         If the selected user is a SuperUser, Sentry will give a warning.
  525.         SuperUser or not, Sentry will then ask if you are sure you want
  526.         to delete them. Any input other than a 'y' will not perform the
  527.         delete. The ESCAPE key will abort this option at any time.
  528.  
  529.  
  530.         5.3 View Users
  531.  
  532.         This option allows you to view all users who currently have
  533.         accounts on your system. SuperUsers are again denoted by a * to
  534.         the right of their login name. The last login date/time, account
  535.         expiry date and password expiry date are also shown to the right
  536.         of the user's login name. In addition, the number of invalid
  537.         logins since the users last valid login are shown with the
  538.         number of invalid logins allowed before an account is locked up.
  539.         An "X" in the "Max Inv Log" (Maximum Number of Invalid Logins
  540.         Allowed) column means there is no limit. You can use the PAGE UP
  541.         and PAGE DOWN keys to scroll forward and back if there are
  542.         multiple pages of users. Arrows ( and ) will be present if
  543.         there are additional pages above and/or below. The ESCAPE key
  544.         will exit back to the main menu.
  545.  
  546.  
  547.         5.4 Toggle SuperUser Status
  548.  
  549.         When this option is selected, it first brings up a list of all
  550.         users on the system. Again, SuperUsers are denoted by a *. Once
  551.         you have selected a user, Sentry will ask you if you want to
  552.         grant/revoke SuperUser access to/from the appropriate user. Any
  553.         input other than a 'y' will not change that users status. Now
  554.         the user must enter a password. (Since the SuperUser status is
  555.         encoded in the password, and the password can never be decoded,
  556.         I can't change SuperUser access without resetting the password).
  557.         The user can re-enter their old password, or enter a new one
  558.         (the old one will be over-written). In a worst case scenario,
  559.         the SuperUser can re-assign a new password to the user if he is
  560.         unavailable to enter a new password himself. (A hostile user can
  561.         have SuperUser access revoked without having to enter a new
  562.         password; you can do it for him).
  563.  
  564.  
  565.         5.5 Change Account Expiry Date
  566.  
  567.         This option lets you define when an account will expire on your
  568.         system. Expired accounts no longer have access. This option is
  569.         useful if a user will be leaving. Then you don't have to
  570.         remember to delete their account on the day they leave. You can
  571.         set it to expire, and delete it when you remember.
  572.  
  573.         This option also works in conjunction with the "Assign Max
  574.         Invalid Logins" option. Once an account reaches it's maximum
  575.         number of sequential invalid logins, it expires. The only way to
  576.         re-activate the account is to change the expiry date with this
  577.         option.
  578.  
  579.         Once you select this option, some information about the account
  580.         will be displayed. If it is a SuperUser account, Sentry will
  581.         tell you so. It will then display the account's current expiry
  582.         date. You will be asked if you are sure you want to change that
  583.         user's expiry date. Any input other than a 'y' will abort the
  584.         process, otherwise you will be prompted for the year the account
  585.         will expire. The year must be entered as 4 digits (IE: 1997). If
  586.         you enter 'N' at the year prompt, no expiry date is assigned to
  587.         that account (it is valid forever). If you enter a valid year,
  588.         you will then be prompted for the expiry month, which is entered
  589.         as 2 digits (IE: 06 for June) followed by the expiry day, which
  590.         is also entered as 2 digits. Accounts expire at one second past
  591.         midnight on the date of expiry.
  592.  
  593.  
  594.         5.6 Change Password Expiry Date
  595.  
  596.         This option lets you define when a users password will expire.
  597.         Once the password has expired, the user must enter a new one.
  598.         This forces the user to change their password. Once a password
  599.         has expired, the next time the user logs in he will be forced to
  600.         enter a new password. The new password is valid for the number
  601.         of days set in the "PasswordExpiresIn" option in the Sentry.ini
  602.         file. Once a password has expired, the user cannot re-enter it.
  603.         He must select a new password. (NOTE: Sentry does not keep
  604.         historical records on passwords, so a user may alternate back
  605.         and forth between 2 passwords. This is not a secure practice and
  606.         should be avoided).
  607.  
  608.         Once you select this option, some information about the account
  609.         will be displayed. If it is a SuperUser account, Sentry will
  610.         tell you so. It will then display the current expiry date for
  611.         the password. You will be asked if you are sure you want to
  612.         change that user's expiry date. Any input other than a 'y' will
  613.         abort the process, otherwise you will be prompted for the year
  614.         the password will expire. The year must be entered as 4 digits
  615.         (IE: 1997). If you enter 'N' at the year prompt, no expiry date
  616.         is assigned to that password (it is valid forever). If you enter
  617.         a valid year, you will then be prompted for the expiry month,
  618.         which is entered as 2 digits (IE: 06 for June) followed by the
  619.         expiry day, which is also entered as 2 digits. Passwords expire
  620.         at one second past midnight on the date of expiry.
  621.  
  622.  
  623.         5.7 View Log File
  624.  
  625.         Every time a user logs in, a record is kept on disk. If you want
  626.         to view that online record, select this option. The log file
  627.         will be displayed, one screen at a time. Once the entire log
  628.         file has been displayed, Sentry will ask you if you want to
  629.         clear the log file. Any input other than 'y' will exit, leaving
  630.         the log file in tact. If you answer with a 'y', Sentry will
  631.         clear out the old entries. This should be done fairly
  632.         frequently, depending on how busy your system is. Large log
  633.         files take up more disk space.
  634.  
  635.         You should always keep a close eye on the log file as this will
  636.         often tell you when something is wrong on your system. All error
  637.         messages are saved to the log file, so you can see if Sentry has
  638.         run into any problems. Also, it records the current time, and
  639.         the username of the user attempting to log in. This will help
  640.         you to identify any potential attacks on your system. The log
  641.         file is hidden by Sentry, but you should also place it somewhere
  642.         safe so that users cannot tamper with it. You can set the
  643.         location of the log file with the Sentry.ini file.
  644.  
  645.  
  646.         5.8 Change Account Password
  647.  
  648.         This option allows the SuperUser to change an account's
  649.         password, in case the user forgot it, or some other strange
  650.         disaster has occurred. When assigning a new password to an
  651.         account, you should set the expiry date to be immediatly, so the
  652.         user is forced to choose a new one. If the previous password had
  653.         no expiry date, none is assigned to the new password. Otherwise
  654.         the password expires in the number of days assigned to
  655.         "PasswordExpiresIn" in the Sentry.ini file. You can abort at any
  656.         time by pressing the ESCAPE key.
  657.  
  658.  
  659.         5.9 Assign Max Invalid Logins
  660.  
  661.         This allows you to set the maximum number of invalid logins
  662.         allowed before an account is disabled. The default number is
  663.         defined in the Sentry.ini file ("InvalidLogins") and is assigned
  664.         to all accounts when they are first used.
  665.  
  666.         To assign a new maximum, simply select the "Assign Max Invalid
  667.         Logins" option from the SuperUser menu. From here you will be
  668.         shown the complete user list, and asked to select the user you
  669.         wish to change. Pressing the ESCAPE key will abort the operation
  670.         here.
  671.  
  672.         Once you have selected the user, you will be informed if that
  673.         user is a SuperUser. NOTE: You should not assign a maximum
  674.         number of invalid logins to your last SuperUser account. If you
  675.         do, and someone attempts to break in to that account, you could
  676.         be locked out of the SuperUser menu!
  677.  
  678.         Next you will be told what the user's current max invalid login
  679.         setting is, and asked if you want to change it. Any input other
  680.         than a 'Y' will abort the operation. Now you will be asked to
  681.         enter the number of invalid login attempts before an account is
  682.         disabled. Entering 'N' or a 0 will mean that there can be
  683.         unlimited invalid login attempts made.
  684.  
  685.         Please note that a value of less than 10 may cause you more
  686.         trouble than good. You may be spending a lot of time re-setting
  687.         accounts if you pick too low a value, so consider this
  688.         carefully. Also note that when an account is locked up, it is
  689.         actually set to expire immediately. As a result, if you wish to
  690.         re-activate an account, you must change the account's expiry
  691.         date (see above). This is also handy for determining when the
  692.         account was actually de-activated. The expiry date for that
  693.         account it set the the day it was locked out.
  694.  
  695.         Every time a successful login is made to an account, the invalid
  696.         login counter is reset. This means that an account will not be
  697.         locked out if it has a valid login before the maximum is
  698.         reached. (For example, say an account has a maximum of 10
  699.         invalid logins. If there are 7 invalid logins before a
  700.         successful login, and then 5 more invalid logins, the account
  701.         will not be locked up. There must be 10 sequential invalid
  702.         logins for the account to be disabled.)
  703.  
  704.         Once you have finished making the change, you can view the user
  705.         list to make sure it is acceptable.
  706.  
  707.  
  708.         5.10 Exit
  709.  
  710.         This simply returns you to the DOS prompt. It is the same as
  711.         pressing the ESCAPE key.
  712.  
  713.  
  714.         6.0 Using Sentry With Windows
  715.         =============================
  716.  
  717.         Sentry is also adaptable to Windows, allowing you to keep users
  718.         away from DOS. This may be desirable if you enter Windows
  719.         immediatly upon startup (I.E.: your autoexec.bat contains "win"
  720.         as a command). If you want to limit access to your system as a
  721.         whole, you could install Sentry in the usual way. This would
  722.         keep out unwanted users all together. If you want to also limit
  723.         access to the DOS prompt from Windows, you can do that too. All
  724.         you must do is create a new instance of Sentry (see below), and
  725.         then simply set up your windows to run Sentry when you drop to
  726.         DOS. The example setup below assumes you have installed an
  727.         instance of Sentry in c:\Sentry\Inst1, but you can substitute
  728.         your actual directory names in where applicable.
  729.  
  730.         To perform this last step, you need to use the Sentry.pif file
  731.         included with this program. Copy this file into your Windows
  732.         directory, and then enter Windows. From here, run the Pif Editor
  733.         program (the icon is a little tag), and open Sentry.pif. Now
  734.         change the "Program Filename" to c:\Sentry\Inst1\Sentry.exe and
  735.         the "Working Directory" to c:\Sentry\Inst1. Now save the .pif
  736.         file, and create a new program item in the group that contains
  737.         your MS-DOS icon.
  738.  
  739.         Fill in the choices as shown below:
  740.  
  741.         Description:        MS-DOS
  742.         Command Line:       Sentry.pif
  743.         Working Directory:  c:\Sentry\Inst1
  744.  
  745.         At this point you can pick a new icon as well. I suggest you
  746.         pick the regular MS-DOS icon, since you will replace your old
  747.         one. The icon is not critical, it is used for "looks" only.
  748.  
  749.         At this point you should test out the new icon you have created
  750.         to make sure it works ok. When you double click on the new icon,
  751.         it shoould take you directly to Sentry. Once you have entered a
  752.         correct username and password, it will then drop you to a
  753.         regular DOS shell. You can type "EXIT" to return to Windows at
  754.         any time.
  755.  
  756.         Once you are sure it works, remove your old MS-DOS icon, so that
  757.         users cannot use it to drop straight to DOS. Now there is one
  758.         last step. If a user were to exit Windows, they would be at the
  759.         DOS level, which is not what we want. Since your autoexec.bat
  760.         file is running windows on startup, you can block people from
  761.         exiting by forcing them to go through Sentry. You can do this by
  762.         adding a call to Sentry after the win command in your
  763.         autoexec.bat.
  764.  
  765.         For example, the last few lines of your autoexec.bat might look
  766.         like this:
  767.  
  768.         ----------------- CUT ----------------
  769.         win
  770.         cd c:\Sentry\Inst1
  771.         Sentry
  772.         cd c:\
  773.         ----------------- CUT ----------------
  774.  
  775.         And that's it. If it seems like a complicated process, just try
  776.         the steps one at a time, and make sure everything works ok. The
  777.         end result is that when you click on the MS-DOS icon, it will
  778.         run Sentry before dropping you to the DOS shell. That means that
  779.         you can limit access to the operating system, without pulling
  780.         any fancy tricks in Windows. Since you have made a new instance
  781.         of Sentry, you could have one instance run when you boot up
  782.         (giving access to windows), and have another instance run when
  783.         you click on the DOS icon (giving access to the operating
  784.         system). That way, a user that has access to windows may not be
  785.         able to drop to DOS.
  786.  
  787.         Be warned however that Sentry will still lock up your system
  788.         when a user fails to log in. This may cause you to lose any
  789.         information you have not saved in your Windows session, so save
  790.         everything before using Sentry. If Sentry does lock up your
  791.         system, you may be able to recover back to Windows by pressing
  792.         CTRL-ALT-DELETE and closing the DOS prompt. This will still not
  793.         allow access to DOS, but you will not lose anything you were
  794.         working on.
  795.  
  796.  
  797.         7.0 Securing Other Programs
  798.         ===========================
  799.  
  800.         7.1 General
  801.  
  802.         In some cases, it might be beneficial to secure a single
  803.         program. It might be a word-processor, a mail program, or even
  804.         Windows. In any case, you can secure it with Sentry, even if you
  805.         don't use Sentry during boot-up. You will probably want to
  806.         create a new instance of Sentry (see below) for each program you
  807.         want to secure. That will allow you to have different accounts
  808.         and passwords for each program.
  809.  
  810.  
  811.         7.2 Setup
  812.  
  813.         To set this up, all you have to do is write a batch file of the
  814.         following format, and stick it in a directory in your path.
  815.         (C:\DOS is almost always in your path, so you could stick these
  816.         batch files there). In this example, we will secure the program
  817.         called RUNME (loacted at C:\prog\runme.exe):
  818.  
  819.         ----------BEGIN RUNME.BAT-----------------
  820.         @echo off
  821.         cd c:\Sentry\Inst2
  822.         Sentry
  823.         cd c:\prog
  824.         runme
  825.         cd c:\
  826.         -----------END RUNME.BAT------------------
  827.  
  828.         The program as shown above will run Sentry before it runs
  829.         RUNME.EXE. As long at the batch file is in your path ahead of
  830.         RUNME.EXE, RUNME.BAT will execute first, barring the user from
  831.         running RUNME.EXE without running Sentry first. C:\DOS is almost
  832.         always first in your path, so this will work for everything but
  833.         DOS programs. You can add a new directory to you path by editing
  834.         your AUTOEXEC.BAT. If you add it to the beginning, and place all
  835.         your batch files there, they will run first. The only exception
  836.         to this rule is that if the user is in the directory containing
  837.         RUNME.EXE they will not execute RUNME.BAT first.
  838.  
  839.         This is not by any means a perfect method of securing a program.
  840.         It will work in most cases, but with the proper knowledge and
  841.         patience, this method can be defeated. If your users are
  842.         skilled, don't rely on this method to be "bullet-proof." (Sentry
  843.         was not designed for this purpose, it is merely an additional
  844.         use).
  845.  
  846.         Future versions of Sentry may have an "automated" method for
  847.         doing this if the need exists.
  848.  
  849.  
  850.         8.0 Creating a new Instance of Sentry
  851.         =====================================
  852.  
  853.         In some of the scenarios listed above, you may be required to
  854.         create a new "instance" of Sentry. That is to say, a completely
  855.         new copy of Sentry, that works independantly of all other
  856.         copies. This is a fairly simple process, that you can perform as
  857.         many times as required.
  858.  
  859.         The first thing you must do when creating a new instance is to
  860.         create the directory you wish to place it under. If you plan to
  861.         have several instances, you may want to create a Sentry main
  862.         directory, with your instances branching off of that. For
  863.         example:
  864.  
  865.         c:\Sentry
  866.              |
  867.              +----+------- Inst1
  868.                   |
  869.                   +------- Inst2
  870.  
  871.         This will allow you to keep all your Sentry files well
  872.         organized, and seperate from your other programs. Create a
  873.         directory for each instance you anticipate you will need. From
  874.         there, simply copy ALL of the Sentry files into each directory.
  875.         The final step is to set up the accounts of each instance
  876.         according to your needs. To do this, you must go into each
  877.         directory individually and run Sentry. Now log in as a SuperUser
  878.         and set up all the required accounts. Remember that each
  879.         instance is independant of the others. Your password file should
  880.         not be the same for any 2 instances (otherwise there is no
  881.         advantage to having 2 instances). That means that the PassFile
  882.         setting in each Sentry.ini must be different, and your password
  883.         files must be in different locations. For simplicity's sake, you
  884.         may want to keep your password file for each instance in the
  885.         same directory as the other related Sentry files. (The password
  886.         file for Instance 1 goes into c:\Sentry\Inst1, and so on).
  887.  
  888.         You should always test out each instance and make sure it works
  889.         before using it.
  890.  
  891.  
  892.         9.0 Registration
  893.         ================
  894.  
  895.         If you use Sentry on your machine(s), I urge you to register. I
  896.         have put a lot of time and effort into making Sentry a viable
  897.         security program, and I would appreciate the effort very much.
  898.  
  899.         On the other hand, I realize that not everyone can afford to
  900.         register. In that case, please feel free to continue to use the
  901.         ShareWare version. There are no limitations on how long or how
  902.         many times it can be used. My intention with Sentry was to make
  903.         a contribution to PC security, and to make it available to
  904.         everyone. All I ask is that if you use Sentry, and are able,
  905.         please register.
  906.  
  907.         The shareware version of Sentry has all the functionality of the
  908.         registered version, with one exception: it does not encode
  909.         passwords. This will allow you to test out all the functions of
  910.         Sentry before you commit to purchasing it. The ShareWare version
  911.         has enough security to be a fairly secure program as is, however
  912.         if you are serious about Security, plaintext passwords are not a
  913.         viable option.
  914.  
  915.         To order, simply fill out the order form provided (Order.frm)
  916.         and e-mail or snail-mail a copy to me.
  917.  
  918.         As a registered user, you will receive:
  919.  
  920.               - The full Sentry program (with password encryption) and
  921.                 related files on 3.5" disk.
  922.  
  923.               - A laser printed user's manual (essentially this file,
  924.                 with a few changes in format and content).
  925.  
  926.               - Online internet support via e-mail.
  927.  
  928.               - Free upgrades as soon as they are available.
  929.  
  930.               - Notices about any potential security risks, and
  931.                 instructions on how to protect yourself.
  932.  
  933.               - The ability to request specific features in future
  934.                 versions of Sentry.
  935.  
  936.         NOTE: Registered versions are not inter-compatible. That is,
  937.         user X's password file is encrypted differently than user Y's
  938.         password file. The version of Sentry that you recieve is good
  939.         only for you and your files. (Likewise, nobody else can use
  940.         their copy of Sentry with your password file). See the order
  941.         form for information on obtaining compatible versions of Sentry.
  942.  
  943.  
  944.         10.0 Revision History
  945.         =====================
  946.  
  947.         10.1 Pre-Release Notes
  948.  
  949.         March 95   - My search for DOS security programs is
  950.                      unsuccessful. The general idea for Sentry is
  951.                      formed.
  952.  
  953.         April 95   - Coding for Sentry begins.
  954.  
  955.         May 95     - Still coding...
  956.  
  957.         June 95    - Sentry is now a complete program.
  958.  
  959.         July 95    - Beta testing. Many updates made.
  960.  
  961.  
  962.         10.2 Sentry V1.0
  963.  
  964.         Release Date: 20 July 95
  965.  
  966.  
  967.         - Sentry V1.0 (Shareware) is released. Contains basic
  968.           functionality. At this point, Sentry is approximately 1700
  969.           lines of code.
  970.  
  971.  
  972.         10.3 Sentry V1.1
  973.  
  974.         Release Date: 27 July 95
  975.  
  976.         - Sentry V1.1 Released. V1.1 fixes some serious bugs in V1.0,
  977.           and has these additions:
  978.  
  979.                      * Date format is selectable.
  980.  
  981.                      * Users with no password expiration are not
  982.                        assigned an expiry date on entering a new
  983.                        password.
  984.  
  985.                      * Incorrect password verification displayed
  986.                        immediately when creating a new user, or toggling
  987.                        SuperUser status.
  988.  
  989.  
  990.         10.4 Sentry V1.2
  991.  
  992.         Release Date: 29 July 95
  993.  
  994.         - Sentry V1.2 Released. Some more minor bugs are repaired and
  995.           several areas are updated. Additions are:
  996.  
  997.                      * Memory management improved.
  998.  
  999.                      * All user stats now shown instead of just login
  1000.                        name.
  1001.  
  1002.                      * The keyboard buffer is flushed after an invalid
  1003.                        login attempt.
  1004.  
  1005.  
  1006.         10.5 Sentry V1.3
  1007.  
  1008.         Release Date: 01 Aug 95
  1009.  
  1010.         - Sentry V1.3 Released. Again, more bugs were fixed in this
  1011.           version. Additions are:
  1012.  
  1013.                      * The log file is now much more detailed than
  1014.                        before, and includes a time stamp on every
  1015.                        action.
  1016.  
  1017.                      * A bug with deleting a user listed as 15th or
  1018.                        later in the password file has been fixed.
  1019.                        (Regardless of what page the user you selected to
  1020.                        delete was on, a user from the first page was
  1021.                        always deleted).
  1022.  
  1023.                      * A bug in the multi-user display was fixed. (If
  1024.                        the last page contained one user, you could not
  1025.                        page down to see him).
  1026.  
  1027.  
  1028.         10.6 Sentry V1.4
  1029.  
  1030.         Release Date: 08 Aug 95
  1031.  
  1032.         - Sentry V1.4 Released. Some minor changes have been made,
  1033.           mostly for the sake of appearance. Additions are:
  1034.  
  1035.                      * The Sentry.ini file now allows the user to select
  1036.                        the colours to be used for normal and highlighted
  1037.                        text.
  1038.  
  1039.                      * Input routines have been improved and simplified.
  1040.                        Inapropriate characters have been stripped from
  1041.                        the input stream.
  1042.  
  1043.  
  1044.         10.7 Sentry V2.0
  1045.  
  1046.         Releaase Date: 11 Aug 95
  1047.  
  1048.         - Sentry V2.0 Released. Many revisions, fixes and additions have
  1049.           been made to the program for this release. Most of the update
  1050.           ideas came from Bret Jacobsen. Additions include:
  1051.  
  1052.                      * Invalid login/password length messages (both to
  1053.                        the screen and log file) are user-definable in
  1054.                        the Sentry.ini file.
  1055.  
  1056.                      * If a normal user attempts to log in as a
  1057.                        SuperUser, it is recorded in the log file.
  1058.  
  1059.                      * The SuperUser Login flag is cleared after an
  1060.                        invalid login. (This is a bug fix: previously if
  1061.                        CTRL-ENTER was pressed during an invalid login
  1062.                        attempt, the next successful login attempt would
  1063.                        be as a SuperUser, as long as the user had
  1064.                        access).
  1065.  
  1066.                      * A bug with the Toggle SuperUser Access option
  1067.                        corrupting the time stamps has been fixed.
  1068.  
  1069.                      * The log file is again re-organized to be more
  1070.                        "readable."
  1071.  
  1072.                      * You can no longer delete the last SuperUser on
  1073.                        your system (thereby locking yourself out).
  1074.                        Sentry performs a check previous to deletion and
  1075.                        will abort if you are deleting the last
  1076.                        SuperUser.
  1077.  
  1078.                      * A bug with the input skipping characters was
  1079.                        fixed.
  1080.  
  1081.                      * After a successful login, the number of invalid
  1082.                        login attempts since your last successful login
  1083.                        is now shown.
  1084.  
  1085.                      * The user can now abort a password change, unless
  1086.                        the password has expired.
  1087.  
  1088.                      * The option to reset an account's password has
  1089.                        been added to the SuperUser menu.
  1090.  
  1091.                      * You can now define the number of invalid logins
  1092.                        permissible before an account expires (locks up).
  1093.                        The default setting is defined in the Sentry.ini
  1094.                        file, and the settings for individual accounts
  1095.                        can be modified from the SuperUser menu.
  1096.  
  1097.  
  1098.         10.8 Sentry V2.1
  1099.  
  1100.         Releaase Date: 20 Aug 95
  1101.  
  1102.         - Sentry V2.1 Released. Changes include:
  1103.  
  1104.                      * Input no longer automatically ends after
  1105.                        "MaxPasswordLen" characters have been entered at
  1106.                        the login or password prompts. Input continues as
  1107.                        required, however only "MaxPasswordLen"
  1108.                        characters are used. Any extra characters are
  1109.                        discarded.
  1110.  
  1111.                      * Case sensitivity for logins can now be turned on
  1112.                        and off via the Sentry.ini file. This is
  1113.                        applicable to logins only, passwords are still
  1114.                        case sensitive.
  1115.  
  1116.  
  1117.         10.9 Sentry V2.2
  1118.  
  1119.         Releaase Date: 10 Sep 95
  1120.  
  1121.         - Sentry V2.2 Released. Changes include:
  1122.  
  1123.                      * Sentry now uses windowed screens for all output,
  1124.                        as opposed to simply directing output to the
  1125.                        entire screen.
  1126.  
  1127.                      * When entering dates, the year is now checked. If
  1128.                        it is not 4 characters, the user is forced to
  1129.                        re-enter it. This was causing problems with
  1130.                        Sentry accepting '96' as a valid year, and
  1131.                        subsequently not translating correctly.
  1132.  
  1133.  
  1134.         11.0 Technical Notes
  1135.         ====================
  1136.  
  1137.         11.1 Encoding Algorithm
  1138.  
  1139.         The encoding algorithm used is the standard UNIX crypt()
  1140.         algorithm. It is a one-way encoding algorithm that incorporates
  1141.         the Data Encryption Standard (DES) and RSA technology. It is
  1142.         used on UNIX systems to secure passwords. (As a note, the
  1143.         encryption code is not included with the ShareWare version, so
  1144.         no amount of examining the code will reveal the algorithm).
  1145.  
  1146.         The users' passwords are never decoded. They are stored on disk
  1147.         and in memory in an encoded format. The entered passwords are
  1148.         encoded using the same algorithm and matched in an encoded form.
  1149.         This prevents disk or memory scans from revealing the password
  1150.         to prying eyes.
  1151.  
  1152.         I have begun running some tests on cracking the passwords, and I
  1153.         will include my results. So far, this is what I have found:
  1154.  
  1155.         Password Length          Maximum Time to Break
  1156.         ------------------------------------------------
  1157.         4                        22 days
  1158.         5                        1368 days or 3.75 years
  1159.         6                        232.4 years
  1160.         7                        14409 years
  1161.         8                        893357 years
  1162.  
  1163.         All times listed are approximated as using a Pentium 90MHz CPU
  1164.         and an alpha-numeric password.
  1165.  
  1166.         These figures may be adjusted as my testing becomes more
  1167.         accurate. The above figures also assume you know the length of
  1168.         the password, which cannot be determined by looking at the
  1169.         encrypted version. As a result, the search time may be much
  1170.         greater.
  1171.  
  1172.         SuperUser access is also encoded in the password. I tried many
  1173.         different ways before finally settling on this. It is the most
  1174.         secure method. Actually, SuperUser access is stored on the
  1175.         password (which is then encoded), and then stored again on the
  1176.         encoded password. That looks like:
  1177.  
  1178.         password                      <-- Password as entered.
  1179.  
  1180.         super(password)               <-- Password with SuperUser stamp.
  1181.                                           * This is the stamp that is
  1182.                                           used to determine access.
  1183.  
  1184.         crypt(super(password))        <-- Encoded password password with
  1185.                                           SuperUser stamp.
  1186.  
  1187.         super(crypt(super(password))) <-- SuperUser stamped encoded
  1188.                                            password with SuperUser
  1189.                                            stamp.
  1190.                                            * This is the stamp that is
  1191.                                            used to "see" who has
  1192.                                            SuperUser access.
  1193.  
  1194.         That way when you use the "View Users" command, you can see
  1195.         which ones are SuperUsers. However, since the non-encoded
  1196.         SuperUser stamp can be edited, it is only used for viewing. The
  1197.         encoded SuperUser stamp is used for access. If anyone attempts
  1198.         to alter the non-encoded stamp, a warning will be displayed in
  1199.         the log file each time that user logs in.
  1200.  
  1201.  
  1202.         11.2 Time Stamps
  1203.  
  1204.         The time stamps used in Sentry are in the standard UNIX format.
  1205.         That is, the number of seconds since 01 Jan 1970 00:00:00.
  1206.  
  1207.         NOTE: I have found one date which always seems to cause an
  1208.         error. 01/01/1997 translates to 01/15/1995 (1st day of the 15th
  1209.         month of 1997). This is obviously incorrect. I have determined
  1210.         it is a bug in Borland's date conversion routines. It is the
  1211.         ONLY date that causes problems, to my knowledge, all others
  1212.         translate fine. I advise against using 01/01/1997 for any expiry
  1213.         dates.
  1214.  
  1215.  
  1216.         11.3 Files
  1217.  
  1218.         The following files are included with this release of Sentry:
  1219.  
  1220.         Sentry.exe      This is the executable program.
  1221.         Sentry.ini      The initialization file.
  1222.         Sentry.pwd      The password file.
  1223.         Sentry.pif      The Sentry .pif file for Windows.
  1224.         Readme.txt      This file.
  1225.         Readme.com      Displays this file.
  1226.         Order.frm       The order form.
  1227.         File_id.diz     Short description file.
  1228.  
  1229.         If you do not have all of these files, Sentry will probably not
  1230.         work for you. You can pick up a complete copy of Sentry (and
  1231.         updates as they become available) at:
  1232.  
  1233.               http://dragon.acadiau.ca/~910318b/Sentry.html
  1234.  
  1235.  
  1236.         11.4 File_id.diz
  1237.  
  1238.         The actual contents of the file_id.diz file are shown below. If
  1239.         any modification has been made to the original file, please
  1240.         re-create it from the following section.
  1241.  
  1242.         NOTE: this is primarily for SysOps of BBS's. Single users can
  1243.         delete the file_id.diz if they wish. (However, please make sure
  1244.         that all files are present if you distribute the program.)
  1245.  
  1246.         -------------------CUT----------------------
  1247.         (V2.2) Sentry - Security for DOS/Windows
  1248.         Sentry is a DOS based security program that
  1249.         allows you to control and monitor access to
  1250.         your PC. It can support up to 100 users and
  1251.         has normal and "SuperUser" access. It can
  1252.         also be used in Windows to secure the MS-DOS
  1253.         icon. Installed correctly, Sentry can be an
  1254.         extremely powerful security tool for your PC.
  1255.         http://dragon.acadiau.ca/~910318b/Sentry.html
  1256.         Mike Bobbitt [Mike.Bobbitt@AcadiaU.Ca]
  1257.         -------------------CUT----------------------
  1258.  
  1259.  
  1260.         11.5 General
  1261.  
  1262.         Sentry is written entirely in Borland C for DOS. As of version
  1263.         2.2, Sentry contains over 2500 lines of code. Portability
  1264.         between machines is not an issue, since Sentry has been designed
  1265.         and tested on standard MS-DOS machines.
  1266.  
  1267.  
  1268.         12.0 Potential Threats To Security
  1269.         ==================================
  1270.  
  1271.         Never underestimate your users. And never be satisfied that your
  1272.         system is completely "air-tight". Users are incredibly apt at
  1273.         finding loopholes in security, and once found, these holes can
  1274.         be expoited. Because of this, I am listing below all of the
  1275.         security loopholes that I am aware of at this time.
  1276.  
  1277.  
  1278.         12.1 The Password File
  1279.  
  1280.         Let me once again stress again that the time stamps and user
  1281.         names are not encoded in the password file. This means that if a
  1282.         malicious user found the password file, he could edit it, and
  1283.         effectively wreak havoc on your system. Bear in mind that the
  1284.         password file is automatically hidden by Sentry, so finding it
  1285.         is not always easy. Also, most of these methods require a
  1286.         working knowledge of how Sentry operates, and that is not
  1287.         commonly available. The best source for that information would
  1288.         be from this file, which is deliberately missing some key pieces
  1289.         of "technical" information.
  1290.  
  1291.         If a user did manage to find the password file however, he could
  1292.         force everyone's account to expire but his own. He could also
  1293.         force everyone's passwords to expire pre-maturely (not a real
  1294.         problem, since the users would simply have to enter new ones).
  1295.         He could remove any expiry dates on his account. Note that he
  1296.         could also edit usernames, effectively locking others out,
  1297.         unless they know their new login. In addition he can delete
  1298.         accounts by removing their entry in the Sentry.pwd file. Also,
  1299.         if he were to edit an encoded password, he would lock out that
  1300.         user since their password has been changed on them (the password
  1301.         would then be essentially garbage).
  1302.  
  1303.         It is important to know however, that a renegade user can never
  1304.         grant himself SuperUser privileges, nor can he ever view any
  1305.         users password, or attempt to effectively modify one. To perform
  1306.         any of these functions, he must already know a SuperUser's
  1307.         password. In fact, not even SuperUsers can view passwords.
  1308.         Nobody can. (They can never be decrypted, remember?)
  1309.  
  1310.         In essence: KEEP YOUR PASSWORD FILE SOMEWHERE SAFE, AND
  1311.                     GUARD YOUR SUPERUSER PASSWORDS!
  1312.  
  1313.  
  1314.         12.2 Hardware Loopholes
  1315.  
  1316.         Although it is unlikely that a user will do this, there is a
  1317.         "back door" into Sentry. Fortunately, this method can only be
  1318.         implemented by technical users. If a user really wants to get
  1319.         into your system, he can disassemble it, and take the battery
  1320.         out of your BIOS. This will reset your BIOS to the standard
  1321.         setup, which does not include password protection. From there,
  1322.         the user can enter your BIOS, and change the boot sequence from
  1323.         C,A to A,C. This means that your computer will search for a boot
  1324.         disk before booting from your hard drive. Therefore, the user
  1325.         can get in if he has a pre-made boot disk. Like I said, it's
  1326.         unlikely, but possible. If you want to fix up this back door,
  1327.         you can re-wire your floppy disk drive so that it is never used
  1328.         on boot up. I do not have instructions for that at this time,
  1329.         however I am looking, and will include them in future.
  1330.  
  1331.         Along the same lines, a user could replace your hard drive (the
  1332.         one containing Sentry)  with another hard-drive. This way he
  1333.         could then boot up using the new hard drive, and never have to
  1334.         worry about Sentry. Also, if he kept your hard drive on the
  1335.         system (as drive D for example), he could still access your
  1336.         data. This kind of trickery is highly improbable, but not
  1337.         impossible.
  1338.  
  1339.         The above two methods take more technical skill than the average
  1340.         user posesses, and should not be considered a serious threat. I
  1341.         include them simply so you can be aware such things exist.
  1342.  
  1343.         It is critical to realize that it is EXTREMELY difficult to
  1344.         repel a determined and well-organized attack. Using Sentry does
  1345.         not guarentee your computer's safety. It does however greatly
  1346.         reduce the threat of a successful attack, and more importantly,
  1347.         it can alert you to potential threats before they become a
  1348.         serious problem. Your ability to defend is much greater once you
  1349.         know you are under attack. Sentry can assist in keeping you
  1350.         informed of suspicious actions on your PC, and it is a powerful
  1351.         tool in defeating most threats.
  1352.  
  1353.  
  1354.         13.0 Troubleshooting
  1355.         ====================
  1356.  
  1357.         13.1 Error messages
  1358.  
  1359.         Below are listed all possible error messages you can get while
  1360.         running Sentry. With each is a brief description of what it
  1361.         means, probable causes, and how to fix it.
  1362.  
  1363.         Please be aware that ALL of these errors cause Sentry to
  1364.         lock-up. This may be an inconvenience at times, but it is done
  1365.         for security reasons (that way an attacker can't "induce" an
  1366.         error and get into the system).
  1367.  
  1368.  
  1369.         13.1.1 Error opening password file!
  1370.  
  1371.         This means your password file cannot be found or opened. Make
  1372.         sure your password file is at the location specified by
  1373.         "PassFile" in your Sentry.ini file. As long as it's there, you
  1374.         should have no problems.
  1375.  
  1376.  
  1377.         13.1.2 Error opening temp file!
  1378.  
  1379.         A temporary storage file cannot be opened. Make sure you have at
  1380.         least a little disk space left when you run Sentry.
  1381.  
  1382.  
  1383.         13.1.3 Error in creating log file!
  1384.  
  1385.         The file that logs all transactions to your computer cannot be
  1386.         created. Make sure you have specified a valid pathname for
  1387.         "LogFile" in the Sentry.ini file, and make sure you have some
  1388.         free space on your drive. If a log file already exists, it will
  1389.         be appended to. Otherwise it will be created.
  1390.  
  1391.  
  1392.         13.1.4 Error opening log file!
  1393.  
  1394.         There is a problem with the log file. Make sure that the log
  1395.         file pointed to by "LogFile" in the Sentry.ini file is not
  1396.         write-protected.
  1397.  
  1398.  
  1399.         13.1.5 Error opening Sentry.ini file!
  1400.  
  1401.         This means that your Sentry.ini file cannot be found. Make sure
  1402.         the Sentry.ini file is in the same directory as your Sentry.exe
  1403.         file, and that your are in that directory when you run Sentry.
  1404.  
  1405.  
  1406.         13.1.6 Error in Sentry.ini file! [XXXXXXXX]
  1407.  
  1408.         Your Sentry.ini file does not follow the correct format. The
  1409.         error message should have a word in square brackets after it
  1410.         (IE: [PassFile], [PasswordExpiresIn], etc). This is the
  1411.         attribute in the Sentry.ini file that is causing the problems.
  1412.         (Sentry expects to find that attribute but doesn't). Use an
  1413.         editor to set the attribute correctly. If you are completely
  1414.         lost, restore the Sentry.ini file from you backup, or use the
  1415.         default attribute setting listed in the comments of the
  1416.         Sentry.ini file.
  1417.  
  1418.  
  1419.         13.1.7 Registration Error - Program Aborted!
  1420.  
  1421.         Someone (probably you) has tried unsuccessfully to change the
  1422.         registration information. Very naughty, but if you want to fix
  1423.         it, simply restore Sentry.exe from your original copy.
  1424.  
  1425.  
  1426.         13.1.8 Error in time stamps.
  1427.  
  1428.         This means there is a problem with the time stamps on a user's
  1429.         account. You can attempt to manually edit a user's record in the
  1430.         Sentry.pwd file, but I don't recommend this. If you don't know
  1431.         what you're doing you are more likely to cause additional
  1432.         problems than to fix the user. Otherwise, you can try restoring
  1433.         your password file from backup. If you continue to use a
  1434.         password file that is corrupt, you will probably find you are
  1435.         locked out quite frequently. It should be a top priority to fix
  1436.         the password file.
  1437.  
  1438.  
  1439.         13.1.9 Out of memory!
  1440.  
  1441.         When this error appears, it means that for some reason, Sentry
  1442.         didn't have enough memory to run. This is extremely rare, since
  1443.         Sentry requires very little memory. If this error occurs, try
  1444.         freeing up some memory by unloading some un-needed programs, or
  1445.         rebooting.
  1446.  
  1447.  
  1448.         13.1.10 This account has expired.
  1449.  
  1450.         Sorry, you're out of luck. The SuperUser(s) have set your
  1451.         account to expire, and so it has. If you ARE the SuperUser,
  1452.         silly you (you shouldn't let your own account expire!). In that
  1453.         case, you will have to restore your password file from a backup,
  1454.         and make the necessary changes to get your system running.
  1455.  
  1456.  
  1457.         13.2 Other problems
  1458.  
  1459.         I get a warning about users being tampered with in the log file.
  1460.  
  1461.         A: Someone has been tampering with your users (obviously). They
  1462.         thought they could change the SuperUser access on your system,
  1463.         but really couldn't. The only side effect of this is that some
  1464.         users may appear to have SuperUser access when they don't (and
  1465.         vice-versa) when you view them from the SuperUser menu. The
  1466.         users' actual access has not changed. To remedy this situation,
  1467.         you can get the user to enter another password (this can easily
  1468.         be done by expiring their current password). As soon as the new
  1469.         password is entered, the problem will disappear.
  1470.  
  1471.  
  1472.         I can't log in at all.
  1473.  
  1474.         A: Make sure you are a user on the system. Make sure your
  1475.         Sentry.ini file has been set up correctly. Make sure your
  1476.         password file is in the right location.
  1477.  
  1478.  
  1479.         I can't log in as a SuperUser.
  1480.  
  1481.         A: Did you give yourself SuperUser access? Are you remembering
  1482.         to hold down CTRL when you hit enter?
  1483.  
  1484.  
  1485.         My password file is corrupt or deleted.
  1486.  
  1487.         A: Pray you kept a backup somewhere. At the very least, you
  1488.         should have the password file sent with Sentry. In that case,
  1489.         re-install, and log in as Sentry. Since Sentry is initially a
  1490.         SuperUser, you can re-create your users (don't forget to delete
  1491.         the Sentry user when you are finished!).
  1492.  
  1493.  
  1494.         I can't create a c:\Sentry directory on my drive.
  1495.  
  1496.         A: If you are using MS-DOS's Undelete program, it may create a
  1497.         directory called "Sentry" off of your root directory. This
  1498.         directory is hidden, and can only be seen with the "dir /a"
  1499.         command. (This only occurs if you are using the "delete sentry"
  1500.         mode). Possible fixes are to stop using "delete sentry" mode, or
  1501.         to create your Sentry directory as something else (eg:
  1502.         c:\Sentry2, c:\Secur\Sentry, etc etc).
  1503.  
  1504.  
  1505.         My password file disappeared, but Sentry still works fine!
  1506.  
  1507.         A: Your password file is still there, but Sentry has hidden it
  1508.         from normal view. When you type "dir" your password file will no
  1509.         longer show up. This is done to confuse and mislead any
  1510.         potential attackers. If you want to check to make sure it is
  1511.         really there, type "dir /a" and it should show up. The log file
  1512.         is protected with the same measures.
  1513.  
  1514.  
  1515.         15.0 Standard Disclaimer
  1516.         ========================
  1517.  
  1518.         Inexperienced users should probably avoid using this program, as
  1519.         you may lock yourself out of your computer!
  1520.  
  1521.         If you feel you want to use it, but don't feel completely
  1522.         confident, leave a "back door" for you to use. (IE: don't
  1523.         implement all of the security measures listed above, so that if
  1524.         you DO get locked out, you can still get in somehow).
  1525.  
  1526.         I have not included a nice simple install program on purpose. If
  1527.         you aren't familiar with the basics of DOS, then you probably
  1528.         shouldn't be installing Sentry anyway. If there is a need for an
  1529.         install program, I may include it in a future release.
  1530.  
  1531.         I take no responsibility for how you use this program, or any
  1532.         effects it may have on your system.
  1533.  
  1534.         Having said that, I would greatly appreciate any comments you
  1535.         might have about my program (either positive or negative). If
  1536.         you find any problems, or have a suggestion for making Sentry
  1537.         better, please let me know, and I'll try to put it in a future
  1538.         release.
  1539.  
  1540.         You can contact me via e-mail at Mike.Bobbitt@AcadiaU.Ca and I
  1541.         will reply as quickly as I can. If you do not have internet
  1542.         access, you can contact me via surface mail at:
  1543.  
  1544.         Michael A. Bobbitt
  1545.         P.O. Box 1336
  1546.         Wolfville, NS
  1547.         B0P 1X0
  1548.  
  1549.  
  1550.         16.0 Credits
  1551.         ============
  1552.  
  1553.         My thanks go out to these people:
  1554.  
  1555.         D.J. Houghton, Rob Coombs and Jack Hill for testing and
  1556.         advising during the design phase.
  1557.  
  1558.         Bret Jacobsen for finding some serious errors in the first
  1559.         release, as well as continually making suggestions for
  1560.         improvement. Bret has given invaluable assistance in the
  1561.         development of Sentry.
  1562.  
  1563.         And my wife for listening to me talk incessantly about it.
  1564.