Protect Your Computer - Securing Windows File and Printer Sharing

Windows 95, 98, ME, NT, 2000 and XP allows files and printers to be shared to other Windows users via a network. Unfortunately, these features may make your computer vulnerable to compromises or otherwise damage your machine. For this reason, we recommend you do not use Windows File and Printer Sharing.

In most environments where Windows File and Printer Sharing is used, access control is done through passwords. That is, in order to access a shared folder or printer, one must know the correct password. However, there is no facility for logging access attempts, so an attacker could, with enough time and effort, break the password through brute force (i.e. trying every possible combinations of passwords). Furthermore, often the passwords are poorly chosen and can be easily guessed.

Windows shares can be either read-only or full access. (On NT machines, further permissions can be applied at the file and directory level). A full access share is exactly that - an individual accessing the share can modify a file, add new files, delete existing files, etc. For this reason, it is recommended that you not share anything with full access enabled.

Note that even a read-only share can be dangerous. Sharing your C:\WINDOWS directory read-only would allow a remote attacker to view your saved password files and possibly other sensitive information.

If you must share files (and we strongly recommend you don't), make sure you have a password on the share and that the share is read-only.

Page last updated on April 7, 2025


UBC Crest The official logo of the University of British Columbia. Urgent Message An exclamation mark in a speech bubble. Bluesky The logo for the Bluesky social media service. Bookmark A bookmark in a book. Browser A web browser window. Caret An arrowhead indicating direction. Arrow An arrow indicating direction. Arrow in Circle An arrow indicating direction. Arrow in Circle An arrow indicating direction. Time A clock. Chats Two speech clouds. E-commerce Cart A shopping cart. Facebook The logo for the Facebook social media service. Help A question mark in a circle. Home A house in silhouette. Information The letter 'i' in a circle. Instagram The logo for the Instagram social media service. Linkedin The logo for the LinkedIn social media service. Location Pin A map location pin. Mail An envelope. Menu Three horizontal lines indicating a menu. Minus A minus sign. Pencil A pencil indicating that this is editable. Telephone An antique telephone. Play A media play button. Plus A plus symbol indicating more or the ability to add. Search A magnifying glass. Settings A single gear. Arrow indicating share action A directional arrow. Speech Bubble A speech bubble. Star An outline of a star. Twitter / X The logo for the X (aka, Twitter) social media service. User A silhouette of a person. Vimeo The logo for the Vimeo video sharing service. Youtube The logo for the YouTube video sharing service.