A passord won't relly protect anything unless it prevents snoops from using your hard disk, but it can discourage casual users who shouldn't be there.
You shouldn't load password programs from AUTOEXEC.BAT, since fast-fingering users can pound out Ctrl-C and abort AUTOEXEC.BAT before it runs the program. Loading from CONFIG.SYS is better, since you normally can't abort CONFIG.SYS.
Jeff Prosise wrote a slick little PASSWORD.SYS program in July 1990 issue of PC/Computing that loads for CONFIG.SYS and won't let the system start untill the proper password is entered. It stores the password in plaun ASCII text, and any user can boot off a floppy and get around it, but it does keep honest people out, especially after a tiny patch.
Jeff's program is terrific, but it's named PASSWORD.SYS and it puts a PASSWORD: promt onscreen. Someone trying to break into your system would see that and look for ways to get around it.
Giving Jeff's programm a less obvious name and changing the prompt makes PASSWORD.SYS even better. Rename it something like MATHCHIP.SYS (as in the example below) or VGA_SCRN.SYS, then replace the PASSWORD: promt with something more diabolical. I substituted ERROR 1101, whih sounds binary and evil.
To se the modified version of Jeff's proggram in action, create the following PROSISE.SCR file:
Make sure you leae a blank after the final Q, the rev up our coy of DEBUG and type:
This will create a file clled MATHCHIP.SYS. Put MATHCHIP.SYS in your \DOS subdirectory,
and make the fisrt line of your CONFIG.SYS file:
DEVICE=C:\DOS\MATHCHIP.SYS
The pasword used in MATHCHIP.SYS is "abcdef," but it's easy to change. Jeff built in a way to make your own password up to eight characters long. A byte at location 115 stores the number of characters in hex notation, and the actual password begins at address 117.
To change the password to MOONBEAM, for example, type:
Note that psswords are case sensitive, so entering "pcc" won't work if you've patched te program to accept PCC. Also, as Jeff pointed out in the original article, some systems won't be able to handle this program with a copy of your old CONFIG.SYS. If you try the program on your hard disk and you have trouble, boot of the floppy and copy the old CONFIG.SYS from the floppy to the root directory of the hard disk.