 |
 |
Configuring the Windows Registry for Minimal Security
Author: Robert L. Williams
E-Mail: robert@rlwconsulting.com
Version: 1.0a
Last Revision: May 25, 2000
(A print version of this document is also available for download in MS Word 97 format.)
Since Windows 95 and Windows 98 are primarily designed for the home and small business environment, security has
not been a dominant philosophy in their development. However, since these are the prevalent operating systems used
in public access settings in public libraries and schools, securing the user interface against accidental changes
or minimal attempts at tampering is very important. Win9x (as we shall refer to the two editions herein, except
where instructions for the two differ) does provide a base level of configuration security, however. It is most
effective in a networked environment where the security settings are stored on a remote server. If all of your
public access computers are networked, a consultation with your network administrator is highly encouraged.
The following instructions provide a method to configure a standalone Win9x-based computer with minimal
security of its user interface using a program called the System Policy Editor.
System policies are collections of settings from the Windows Registry, the storehouse of software settings for
much of the software installed on your computer, as well as those of Windows itself.
On the following pages, we propose registry settings you can use to prevent accidental changes to the Win9x
desktop and Start Menu, as well as many user attempts at tampering with other configuration settings. Realize
at the beginning, however, that a configuration set in the Policy Editor can be circumvented or counteracted
by a knowledgeable user; not all desirable security parameters can be set within the Win9x registry, even in
a networked environment.
For those wanting a free, basic configuration security solution, the registry offers a compromise. With these
reservations, we present the following instructions as an exploration of the parameters that can be set on
a single workstation. They are for illustrative purposes only. Consult a qualified computer/network technician before
implementing final settings on your public access computers.
Backing Up the Windows Registry Files
The first step in dealing with Win9x registry changes is performing a backup of the registry files. If any
problems are encountered, you may restore the original settings by copying the original registry files back onto
your hard drive.
- Click the Start button.
- Click Programs.
- Click Windows Explorer.
- In the left "pane" of the Explorer window, find and click on the Windows folder.
- After the contents of the Windows folder are displayed in the right pane of the Explorer window, scroll
down until you see filenames beginning with the letter S. Do you see a file named
system.dat?
- If yes, skip to the next step. If no, follow the instructions shown below:
- Click the View menu at the top of the Explorer window.
- Set the file options:
For Win98:
- Click the Folder Options… menu item.
- Click the View tab.
- Under the Hidden Files folder, make sure the Show all files radio button is selected.
If not, click it.
- Make sure the Hide file extensions for known file types checkbox is unchecked.
If it is checked, click the box to remove the checkmark.
For Win95:
- Click the Options… menu item.
- In the Hidden Files group, make sure the Show all files radio button is selected. If not,
click it.
- Make sure the Hide MS-DOS file extensions for file types that are registered checkbox is
unchecked. If it is checked, click the box to remove the checkmark.
- If you made changes, click the Apply button.
- Click the OK button.
- Click the View menu again.
- Click Refresh.
- Scroll down the right pane again until you find the system.dat file. If the file size is
greater than 1370K, you need to have a high-capacity backup device available (optimally a Zip drive, a network file server, or a writable CD
drive) to back up the file. If you do not have such a device in this situation, stop now and consult a computer technician. Otherwise, you
can store the file on a floppy disk. Put media in the designated drive.
- Right click the system.dat file.
- Click Copy.
- In the left pane of the Explorer window, click on the target backup drive (Zip, network, or writable CD).
- In the right pane again, right click anywhere in a white space.
- Click Paste. The system.dat file will be copied to the selected drive.
- In the left pane, find the Windows folder and click on it again.
- Scroll the right pane until you see the user.dat file.
- Repeat steps h-l for the user.dat file to copy it to the backup drive.
Installing the System Policy Editor
Windows 95 and 98 include a program named poledit.exe which provides easy access
to many Windows registry settings aimed at workstation configuration. The program is called the System Policy Editor.
However, this program is not included in the original installation of the Windows operating system on your computer(s).
To use it, the Policy Editor must be installed on your system. This section provides instructions for Policy Editor
installation.
From the Win9x desktop:
- Insert your original Windows 9x CD into the CD-ROM drive.
- Double-click the My Computer icon.
- Double-click the Control Panel icon.
- Double-click the Add/Remove Programs icon.
- Click the Windows Setup tab in the Add/Remove Programs
Properties dialog.
- Click the Have Disk… button.
- Click the Browse button.
- In the Open dialog, click the drop-down list under Drives:.
- Click on your CD-ROM drive.
- Find the policy editor files, under the Folders: list:
For Win98:
- Double-click Tools.
- Double-click Reskit.
- Double-click Netadmin.
- Double-click Poledit.
For Win95:
- Double-click Admin.
- Double-click Apptools.
- Double-click Poledit.
- Under the File name: list, click poledit.inf (type the name in the filename
text box if does not appear there after clicking).
- Click the OK button on the Open dialog.
- Click the OK button.
- The policy editor files will be installed. After the system is finished, you may close the Add/Remove dialog
and the Control Panel.
Checking for User Logon
When you reboot your computer or restart Windows, does a Windows Login screen appear on your computer? In order to restrict certain
users, or certain groups of users, from changing some of the configurable parts of Windows, you must enable the
Windows Login feature. If you already get a login screen, your computer is already set to allow multiple logons,
or multiple people to create "profiles," differing configurations of Start Menu items, desktop icons,
etc. Nevertheless, you might follow these instructions just to be sure all the items are configured appropriately.
If your computer boots straight to a Windows desktop screen with no login prompt, you need to follow these instructions.
- Click the Start button.
- Click Settings.
- Click Control Panel.
- After the Control Panel loads, find the Passwords icon. Double-click it.
- Click the User Profiles tab.
- Click the Users can customize their preferences and desktop settings item.
- Click both User profile settings checkboxes.
- Click OK.
- Close the Control Panel.
Creating a Manager’s User Profile
The system policies you will be creating in the next section will be implemented as an "all user" policy.
Any user accounts created after the configuration is created will inherit all the settings you specify. The settings
will provide as much protection from mischief as Windows itself will allow you. But you may need to work on the computer
without these settings from time to time. To do so, we need to create a specific user profile without the protected
configuration. This section provides a "manager" user profile for this purpose.
- Click the Start button.
- Click Settings.
- Click Control Panel.
- After the Control Panel loads, find the Users icon. Double-click it.
- In the User Settings dialog, click New User….
- Click Next in the pop-up dialog.
- In the User name: text box, type a name for the manager of the accounts; "manager" might be good.
- Click Next.
- Type a hard-to-guess password in the Password: text box. A good password usually consists of characters and
numerals, or even two words separated by a hyphen. Confirm the password by typing it again in the Confirm
password: text box. Be sure to write the user name and password down and keep it secure.
- Click Next.
- Check each of the checkboxes indicating that all areas of the interface should be separate from the main interface
configuration.
- Click Next.
- Click Finish.
Setting Up the System Policy Editor
Windows 95’s version of the System Policy Editor has far fewer options than the Windows 98 version. Once it is installed,
it has only one pre-configured template, Admin.adm, which is opened by default. So you will not need to configure the Windows
95 System Policy Editor. The instructions below refer to the Windows 98 version.
Before you begin working with the policy editor, you must first add some policy template files to its configuration.
- Click the Start button.
- Click Run….
- In the command dialog, type poledit.exe and click the OK button.
- Click the Options menu.
- Click Policy Template….
- Check to see if any of the following templates are loaded. These four templates provide all of the configuration settings
most libraries will require in securing their workstations:
inetresm.adm
inetresm.adm
shellm.adm
windows.adm
For each of the above files that are missing, complete the following steps:
- Click Add….
- In the Open Template File dialog, click the drop-down list under Look in:.
- Click drive icon labeled (C:).
- Scroll until the Windows folder is visible. Double-click the Windows folder.
- Scroll until the Inf folder is visible. Double-click the Inf folder.
- Double-click on the desired template file name.
- When all the template files are listed in the window, click the OK button. The System Policy Editor
now has access to all the registry settings that impact the security of your workstation.
Configuring the Default User Policy Settings
On a standalone public access computer, the policy editor must work on that computer’s and user’s registry settings
(the local computer). In a networked environment, settings for "Default Computer" and "Default User"
are used to create a policy that is stored on a network file server and accessed by each computer that logs onto the file
server. The instructions below use the same settings, but store and retrieve the policy from the local hard drive instead
of the network. These override the computer’s registry settings.
Windows 95 and Windows 98 present different default templates in the System Policy editor and have different settings
available for configuration. The instructions below apply to Windows 98. A note is made where configuration settings also
apply to Windows 95.
Before you begin setting system policies, experiment with the configuration of the default Windows desktop by restarting
Windows and pressing the Esc key when the Windows Login screen appears. This will load the default user configuration. Then
add/delete desktop icons, Start Menu items, wallpaper, etc.
Once you have configured the desktop as you want it to appear for your patrons, run the System Policy Editor again as
directed in steps 1-3 of the previous section.
- Click the File menu.
- Click New.
- You should see the two icons shown above.
- Double-click the Default User Icon. The Default User Properties dialog will appear, with a "tree" of
configuration categories. If you configured your template files as directed in the previous section, you should see a
list very similar to the one shown below.
- The items labeled General through Advanced
Settings allow you to configure the operation of the Internet Explorer browser. If you use Netscape, you will not
need to work with these settings.
- The Desktop item provides settings to secure the desktop icons from manipulation. I have
experienced difficulty making these work with existing user profiles, but you should have no trouble on a new PC or on a PC which
previously had no User Profiles already created. Click the plus sign (
) beside Desktop to reveal four areas of configuration.
- Place a checkmark beside each item. As you check each one, look at the Settings list for its options. We recommend checking the
following items:
- Desktop Restrictions:
- Do not allow changes to Active Desktop
- Hide Explorer Icon (if you use Netscape Navigator exclusively)
- Active Desktop Items:
- Disable adding ANY desktop items
- Disable deleting ANY desktop items
- Disable editing ANY desktop items
- Disable closing ANY desktop items (if you have open windows on the desktop)
- Desktop Wallpaper Settings:
- Disable changing wallpaper
- Desktop Toolbars Settings:
- Disable dragging, dropping, and closing ALL toolbars
- Disable resizing ALL toolbars
- Click the plus sign beside Start Menu to reveal its configuration item. Click the check box beside its configuration item
and you will see a list of thirteen settings appear in the Settings for Start Menu list below. Click the checkboxes for the
first twelve items to set a maximum level of security.
- Click the plus sign before Shell. Then click its configuration item to place a checkmark in the selection box and reveal the
seven settings in the Settings for
Shell list.
- Four settings in particular should be checkmarked:
- Disable File menu in Shell folders
- Disable context menus in Shell folders
- Hide Floppy Drives in My Computer
- Disable net connections/disconnections
- Check with your network technician/administrator regarding the other items. In relation to your computer use policy, you should also
discuss hiding floppy disk drives in My Computer. (Note: This setting will hide the
floppies in all Explorer windows, "File Save" and "File Open" dialogs as well, keeping patrons from immediately
accessing floppy disks; however, the hiding is easily circumvented by just adding an a: drive designation before the filename in the
dialogs.)
- Click the plus sign beside the System item. Checkmark its configuration item. Then, in
its Settings list, checkmark the Do not allow computer to restart in MS-DOS mode item.
- (+Win95, Network) The Windows 98 Network item, if it appears, is not applicable to a
standalone computer. Discuss these settings with your network technician/administrator if the computer is set up in a networked environment.
- Click the plus sign beside the Windows 98 System item to reveal four configuration items.
- (+Win95) Click the plus sign beside the Shell item. In most cases, the
Custom Folders item can be ignored.
- (+Win95) Click the plus sign beside the Restrictions item. A series of eleven items will be
listed. Some of these reflect changes you may have made in previous configuration items. Check all items except two:
Hide all items on Desktop and Disable Shut Down command.
- Notes: If you want to make your Start Menu the only method of accessing programs, you can also check the
Hide all items on Desktop item. Disabling the Shut Down command will keep your patrons from trying to
reboot the machine, but it will also prevent you from easily rebooting if a program freezes the system, etc. Hide
Drives in My Computer will hide all drives on your system in File Save and Open dialogs, as well. However, a knowledgeable patron can still
access the drives by adding a specific drive letter before a filename or alone, such as c:\, and the drive contents will be displayed.
- (+Win95) Click the plus sign beside the Control Panel item. A series of five items will be listed underneath it.
- Restrict Display Control Panel
- Restrict Network Control Panel
- Restrict Passwords Control Panel
- Restrict Printers Control Panel
- Restrict System Control Panel
- (+Win95) Click the plus sign beside each of the five items and checkmark the configuration item which appears. Checkmark the top item in
the Settings: list for each. For example, below the Display item is
Restrict Display Control Panel. Checkmark that and a series of five items appears in the
Settings: box. The first is Disable Display Control Panel. Checkmarking the
Disable item effectively accomplishes all of the other items in the list.
- (+Win95) You may set the options for wallpaper or color scheme with the Desktop Display item if you wish, but you have probably already
done that when setting up the computer.
- (+Win95, System first) Click the Restrictions item. Four important settings appear below it.
- (+Win95) Checkmark the Disable MS-DOS prompt and Disable
single-mode MS-DOS applications to keep patrons from easily accessing an MS-DOS prompt.
- (+Win95) If you would like for your patrons to have access only to the few programs you prescribe, put a checkmark beside the item
Only run allowed Windows applications. In the Settings box you can then specify which programs are
allowed to run (Note: Set this option only on the default user's profile and be sure to "uncheck" it when adding the manager profile later.
Also, be certain to add the programs to the list that you wish the default user to have access to. Checking this box without adding programs, and
not unchecking it in the manager's profile, may virtually lock you out of the machine.)
- (+Win95) Lastly, when you finalize all the settings you desire, put a checkmark beside the Disable Registry
editing tools item. This will keep patrons from using the regedit.exe tool under Windows, but
does not keep them from running other, third-party registry editing applications. Nevertheless, it offers a moderate amount of protection from patron
tampering with the settings you have just set. For an added layer of protection, remove the regedit.exe
file from the computer (copy it to a floppy disk for your own use).
At this point, you’re almost finished. In order for you to be able to change any of these settings later, you’ll need a separate, unsecured configuration
for your own use. We configure that user in the last section.
Configuring the Manager Profile
To create a policy for the manager account you created earlier, you need to add an additional user.
- Click the Edit menu in the System Policy Editor.
- Click Add User….
- Type the name of the manager profile you created earlier into the text box.
- Click OK. A new user icon appears in the policy editor window.
- Double-click the new user icon.
- The policy settings will be the same as those you set in the previous section for the Default
User. Go into each of the setting areas and uncheck all of the items you wish to be able to access
as the manager. Basically, this means you can uncheck all of the items you checked for the default user.
- When you have configured the policy as desired for the manager account, click OK.
Saving the Policy
In order for Windows to access these settings after you computer is rebooted, they need to be written
to the hard drive.
- Click the File menu in the Policy Editor.
- Click Save As….
- In the Save As dialog, click the
icon beside the location box.
- Double-click My Computer.
- Double-click C: drive icon.
- Double-click the Windows folder.
- In the File name: text box, type config.pol and click Save.
Setting the Path to the Policy File
So that Windows knows which policy file to open as it boots, you need to tell it to download the
policy manually from the file you just created.
- Click the File menu in the Policy Editor.
- Click Open Registry.
- Double-click the Local Computer icon.
- Click the plus sign beside the Windows 98 Network item (Network in Win95).
- Click the plus sign beside Update.
- Put a checkmark beside the Remote Update setting.
- In the Settings box below, click on the Update Mode: drop down list and click
on Manual.
- In the Path for manual update: text box, type c:\windows\config.pol
- Click OK.
- Click File.
- Click Save.
Exit and Reboot
Your configuration is now ready. Close the System Policy Editor and restart Windows. When the login screen appears, press
ESC to see what the patron desktop looks like. See where you can or can’t go, what you can or can’t do.
Restart the computer a second time and type in the manager user name and password you selected. When the desktop loads, you
should see your normal screen.
To protect the policy file, you can write-protect it by using attrib.exe to make it read-only and hidden:
(attrib +r +h c:\windows\config.pol).
HOME |
ONLINE CLASSES |
WORKSHOPS |
WEB DESIGN
CONSULTING |
FEES |
ARTICLES |
WC STORE
LINKS |
ABOUT WC
|
 |
 |