Simple File Sharing
Although most home users are typically happy letting anyone at any computer read or modify any file, business users need to restrict access to files with payroll, personnel, and proprietary information. Windows Vista, XP, and their predecessors, Windows NT and Windows 2000, were designed with business use in mind, so they require usernames and passwords for identification, and have a security system that lets computer owners restrict access to sensitive files on a user-by-user and file-by-file basis on each computer.
Unfortunately, on a Windows workgroup network, there is no centralized list of authorized usernames. This makes maintaining control of who is and isn’t permitted to access network files on each computer difficult. Here’s why: When you attempt to use a file or printer shared by another computer, Windows sends your username and password to the other computer. In versions of Windows prior to XP,
- If the username and password matched a user account already set up on the other computer, Windows used that account’s permission settings to determine whether to grant you access to the file.
- If the user information didn’t match, Windows prompted you to enter a username and password that the other computer would recognize.
- If you failed to provide a valid password, the remote Windows computer gave you the permissions assigned to the Guest account, which was usually disabled or didn’t have permission to access the resource you wanted.
The advantage of this system was that it let you determine precisely which users could access specific files and printers. The disadvantage was that it required you to set up identical user accounts for each network user on every computer, and then grant these users permissions to view and modify shared files and folders.
Smaller business and home users found this security setup cumbersome to use and difficult to set up properly. This pushed people into sharing accounts and passwords, and otherwise avoiding good security practices, just to get the network to work. That’s a risky approach, so Microsoft gave Windows XP a feature called Simple File Sharing. On Vista, the corresponding feature is called Password Protected Sharing, but the sense of having it turned on or off is reversed from XP. Here’s how the features correspond:
XP |
Vista |
Simple File Sharing Enabled |
Password Protected Sharing Off |
Simple File Sharing Disabled |
Password Protected Sharing On |
When Simple File Sharing is enabled (or on Vista, when Password Protected Sharing is off),
- Network users are always given access to shared folders and printers, without being prompted for a username or password. They are automatically granted access to files and folders, using the permissions granted to the Guest account, even if Guest is disabled for direct logins.
- On XP only, the Security properties tab that is normally used to assign per-user permissions to files and printers is not displayed, even for files that are stored on a drive formatted with the NTFS file system. Files stored in directories in a user’s profile folder (My Documents, for example) are automatically set up to permit access only by the owner, and files stored elsewhere are set up to permit access by anyone.
- Windows automatically assigns appropriate security permissions to folders and printers when you share them. If you check Allow Network Users to Change My Files, all network users can read, write, rename, or delete the contents of the shared folder. If you don’t check this option, network users can view but not modify the contents.
The result is that with Simple File Sharing in effect, anyone who connects to your computer through the network has access to all shared files, folders, and printers shared by the computer, with no security enforcement of any kind. This has the advantage of eliminating all worries about having to manage accounts and passwords on multiple computers, but it does mean that you have to keep in mind these points:
- You don’t get to pick and choose who gets access and who doesn’t. Everyone gets access to every shared resource.
- If you have an unsecured wireless network with no WEP or WPA security key, anyone driving by your home or office can not only connect to your network, but also see and/or modify your shared files.
- On XP, the Shared Documents folder that appears under My Computer is automatically set up as a shared folder, the idea being that any files you place in it are available not only to other users on your computer, but to other users anywhere on your network. On Vista, you can control whether the Public Documents folder is shared on the network from the Network and Sharing Center.
In the end, it’s a reasonable trade-off, as long as you keep in mind the fact that all shared files and folders are available to anyone who can connect to your network. You should also keep in mind that
- Simple File Sharing is always used on XP Home Edition, and cannot be disabled. This means that anyone can use any resource shared by a computer running XP Home Edition.
- Simple File Sharing is optional on XP Professional, when the computer is part of a workgroup network. It’s enabled by default when Windows is installed, but you can disable it if you want to use user-level security on files and/or shared resources.
- Simple File Sharing is always disabled on an XP Professional or Vista computer that is joined to a domain network. User-level security is always used in this case.
- Simple File Sharing applies only to the resources shared by the computer running Windows XP and Vista. If you use XP to use folders shared by a computer running some other operating system, such as Windows Me or Mac OS X, that operating system’s security system is used.
On an XP Professional computer that is not a member of a domain network, the Simple File Sharing feature can be disabled from the Tools, Folder Options, View tab in any Windows Explorer window, as shown in Figure 6.10. You must be logged on as a Computer Administrator to change the setting.
Figure 6.10 Simple File Sharing is enabled by default; disable it to use the old Windows NT/2000 access control system on a peer-to-peer network.
To change the Password Protected Sharing setting on Vista, follow these steps:
- Click Start, Control Panel, Network and Internet, Network and Sharing Center.
- Click the small round v button next to Password Protected Sharing. Click Turn On or Turn Off Password Protected Sharing as desired.
- Click Apply, and then confirm the User Account Control prompt.
Also, on XP if Simple File Sharing is disabled, your computer displays different dialog boxes when you go to share a folder, and you’ll have access to the Security properties page on folders and printers. You can see both versions in the next section.