home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
harddisk
/
bmenu122.lzh
/
BMREAD.ME
< prev
next >
Wrap
Text File
|
1989-01-31
|
7KB
|
203 lines
******* CHANGING THE COMPANY NAME *******
To change the company name at the top of the main BM screen, type:
OVERLAY WWS [ENTER] and go from there....
****** PASSWORD PROTECTION *******
A new utility program can be found on your distribution disk. It
is called PASSWORD.COM, and allows you to insert a low level
security system onto your hard disk. The PASSWORD program will
return a "1" when an invalid password is entered and a"0" when
the correct Standard password is entered.
The PASSWORD program should be used with the IF ERRORLEVEL
command in your menu commands. Here is a simple example that
illustrates how that is done:
ECHO OFF
PASSWORD
IF ERRORLEVEL 1 GOTO SKIP
DIR A:/P
PAUSE
:SKIP
Here is how it works:
1. ECHO OFF turns the display of the commands OFF. This is just
a matter of personal preference.
2. PASSWORD executes the password program.
3. IF ERRORLEVEL 1 GOTO SKIP. This command means that if
PASSWORD returns a 1 (invalid password), the program flow
should be transferred to the LABEL called SKIP, and therefore
skip the set of commands in between.
4. DIR A:/P displays the directory of drive A, pausing if the
directory listing fills up the screen. This command will only
be executed if the PASSWORD program results in a 0.
5. PAUSE stops the execution of the command flow until a key is
pressed, allowing you to see the DIR of A:. This command will
only be executed if the PASSWORD program results in a 0.
NOTE: The commands described in item 4 and 5 could have been
any other DOS command, program filename, or batch
filename. For example, the following set of commands
would change directories and execute the program 123
only if the correct password was entered.
ECHO OFF
PASSWORD
IF ERRORLEVEL 1 GOTO SKIP
CD C:\LOTUS
123
:SKIP
The Master and Standard Passwords:
There are two passwords connected with each copy of the PASSWORD
program: the Standard password and the Master password. The
Master password allows you to change the Standard password, as
well as the Master password itself. The Master password should
be known only by the person designing the menu system. The
Standard password is the one to be entered at the PASSWORD
prompt. If the correct Standard password is entered, PASSWORD
will display "Access Granted" and execute the commands
immediately following.
To change the standard password for a specific copy of
PASSWORD.COM, you must enter the Master password at the program
prompt. Each of these passwords may contain any alpha-numeric
character and may be up to 8 characters long. The default Master
password is 222222 and the default Standard password is 11111111.
We recommend that the Master password be the same for each copy
of PASSWORD.COM in a given hard disk system. We also recommend
that you change the passwords used with critical information from
time to time.
Using More Than One Password Per Directory:
This example uses two different filenames for the password
program. This allows for the use of separate passwords to run
two different programs in the same directory. Let's first assume
that we have a subdirectory called SAMPLE containing two programs
called PROGRAM1.EXE and PROGRAM2.EXE. Each of these programs
requires a different standard password.
1. First you will change the Standard password for the local
PASSWORD.COM program, to the one used with PROGRAM1.EXE.
2. Copy PASSWORD.COM to another filename, say PASS1.COM. Now
PASS1.COM is a copy of PASSWORD.COM with the standard password
to run PROGRAM1.EXE.
3. Change the standard password again in PASSWORD.COM to the one
to be used with PROGRAM2.EXE.
4. Copy PASSWORD.COM to another filename, say PASS2.COM. Now
PASS2.COM is a copy of PASSWORD.COM with the standard password
to run PROGRAM2.EXE.
5. Delete PASSWORD.COM.
To execute PROGRAM1.EXE using the password program, you should
enter the following commands in the menu file:
ECHO OFF
CD\EXAMPLE
PASS1
IF ERRORLEVEL 1 GOTO SKIP
PROGRAM1
:SKIP
To execute PROGRAM2.EXE using the password program, you should
enter the following commands in the menu file:
ECHO OFF
CD\EXAMPLE
PASS2
IF ERRORLEVEL 1 GOTO SKIP
PROGRAM2
:SKIP
The trick here is to change the standard password before you make
a copy of the password program. Remember that the PASSWORD
program rewrites itself every time you change the Standard or
Master password. If you want to change the passwords in PASS1 or
PASS2, you must rename the file to PASSWORD.COM, change the
password, and rename it back to original filename. It seems
complicated but since it is only done once in a while, it is not
so bad. Always keep track of the different password program
filenames and passwords.
Protecting Data Files and Directories:
One way to protect a data file, directory or program is to change
its name to something that nobody would dream would contain the
information it does.
For example, a low level security may rename a specific Lotus
worksheet file, BALANCE.WK1, to BALANCE.WWW. Then, if the
correct password is entered before Lotus 123 is executed, it will
automatically be changed back to BALANCE.WK1. After exiting
Lotus, BALANCE.WK1 again becomes BALANCE.WWW.
A high level of security can be implemented using another simple
trick. The ASCII extended character 255 may be used as part of a
filename, directory name or program name. This character is
invisible and nobody could possibly know it is there unless you
tell them so. To enter this character, hold the [Alt] key down
and press 255 on the numeric keypad. Place this character at the
end of the filename so that the word will not be shifted to the
left one character. Ex: To make a directory called SECURE type:
CD\ [ENTER]
MD SECURE
Don't press [ENTER] yet. Press [Alt] and hold it down while
pressing 255 in the numeric keypad. The cursor will move but
nothing will be displayed. You can't see it but it is there!
Now everytime you access that directory you must remember to
finish the word SECURE with [Alt]255.
So when you are building a command set to change to the SECURE
directory, use CD SECURE, terminated with [Alt]255. Ex:
ECHO OFF
PASSWORD
IF ERRORLEVEL 1 GOTO SKIP:
CD C:\SECURE
DIR /P
PAUSE
:SKIP
IMPORTANT: This trick is only effective if you are the only one
who knows about it! Therefore, it essential that this READ.ME
file be erased from your hard disk. You may even consider
deleting it all together.
Examples of how to use the PASSWORD program can be found in
the menu file called JOKES.BM.
**** LET US KNOW ****
If you know of other tricks and traps that should be included in
this "README" file, please let us know! Thanks...
Wild West Software
Leslie D. Cidale
Product Manager