Creating file shares in Windows 2000 was easy: Right-click on the folder, click
Properties, click the Sharing tab, and away you go. It worked right out of the
box.
Not so with Windows XP, in which file sharing is more problematic because it’s
disabled by default. This is a more secure default configuration; users have to
knowingly and actively enable file sharing for it to work.
As in previous versions of Windows, Windows XP lets you create shares through
three primary interfaces:
Create a share using Windows Explorer
The most common way to create shared files is via Windows Explorer. If you have
a Windows XP computer that is a member of a Windows 2000 or Windows NT 4.0
domain, everything works pretty much as it used to. However, getting file
sharing to work on a Windows XP computer that is a member of a workgroup can
make for a wild ride. Let’s look at the steps involved in creating a file share
on a Windows XP Professional computer that’s a workgroup member:
|
Figure A |
|
|
|
Avoid the sharing wizard, which is targeted for home users. |
|
Figure B |
|
|
|
Again, refuse XP's persistence that you use the wizard. |
|
Figure C |
|
|
|
The Sharing tab appears after you allow file sharing. |
|
Figure D |
|
|
|
You may want to turn off the default Allow Network Users To Change My Files option. |
When you share a folder using simple file sharing, the Everyone group is given
permission to access the folder. If the Allow Network Users To Change My Files
option is selected, then Everyone can write to and change the files. Someone at
Microsoft must have thought this simple file sharing routine was easier than the
traditional methods, but I find it very confusing. The problem with simple file
sharing is that you have no idea what the exact share and NTFS permissions are
on the folder. Simple file sharing completely hides NTFS permissions not only on
folders, but also on all files.
Let’s fix this problem. Perform the following steps so that you can view the
actual share and NTFS permissions on the folder:
|
Figure E |
|
|
|
This last check box will enable or disable simple file sharing. |
|
Figure F |
|
|
|
Create a share using traditional methods. |
|
Figure G |
|
|
|
Simple file sharing gives Everyone full control. |
|
Figure H |
|
|
|
The Security tab gives you a full run-down of the Everyone groups permissions. |
Create a share using the Computer
Management console
You can sometimes use the Computer Management console to create new file shares
on a machine in a workgroup environment. I say sometimes because it
appears that, on some occasions, this option isn’t available to Windows XP
Professional computers that aren’t members of a domain. But, if the machine was
at one time a member of a domain and then was removed from the domain,
sometimes the option to use the Computer Management console to create a new
share is available. I suspect this is related to whether simple file sharing is
available or not, but I haven’t been able to identify consistent behavior in
this area.
Note
This method always works when the machine is a member of a Windows 2000 domain.
Perform the following steps to create a file share using the Computer Management
console:
|
Figure I |
|
|
|
Make sure to type the full path to the folder or use the Browse button. |
|
Figure J |
|
|
|
Choose to control your share's properties. |
Create a share using the Command
Prompt
Another popular way of creating file shares is to use the net share command line
tool. Open a Command Prompt and type net share /?. You’ll see the screen
shown in Figure K.
|
Figure K |
|
|
|
The net share options are fairly straightforward. |
You can create or delete shares using the net share command. For example, if you
have a folder on the C: drive named STUFF, you can share the folder by issuing
the following command:
net share STUFF=c:\STUFF
Some switches allow you to limit the number of users that can connect to the
share at the same time and how file caching is performed for the share. Note
that you cannot set share permissions using the net share command. If you don’t
specify these options, the defaults for your installation will be used. These
defaults are different depending on whether or not your machine is a member of a
Windows 2000 domain.
Managing file shares
You can do several things to manage and manipulate file shares on your machine.
Many file share management tasks can be performed from the Computer Management
console. To manage file shares from the Computer Management console, perform the
following steps:
|
Figure L |
|
|
|
The Shares node shows the status of your shares. |
|
Figure M |
|
|
|
If you right-click the Sessions node in the left pane, you have the option to disconnect all users. |
|
Figure N |
|
|
Windows XP Home issues
Windows XP Home Edition works like Windows XP Professional, with the exception
that you cannot undo the simple file-sharing feature. This is a major blow to
Windows XP Home Edition users who use the NTFS file system. These users will
never have access to the Security tab. Thus, they don’t have any GUI interface
to configure NTFS permissions on files or folders. Here’s the workaround for
this problem: the cacls command line tool. Cacls doesn’t represent much of a
problem to system administrators who are accustomed to using command line tools,
but this does present a significant barrier to nonprofessional home users.
Some improvements, with a little overhead
Windows XP provides some new ways to configure file shares. The goal of the new
Windows XP methods and approach to file sharing is to improve the level of
security on Windows XP machines. If you use simple file sharing, you must
explicitly share a folder with the knowledge that everyone has at least Read
access. If you decide to give Change access, then you know that all users have
the ability to change a share’s contents. However, Windows XP does allow you to
use more traditional methods of configuring file shares if you turn off simple
file sharing.
Consider a donation to keep My Site And Support Alive!!
All products mentioned are registered trademarks or
trademarks of their respective companies.
Questions or problems regarding this web site should be directed to the
Webmaster.
Copyright © 1999-2008 Internet Fixes. All rights
reserved. Legal
Disclaimer