At one time or another, just about all of us have been frustrated by not being able to access a file or other resource that we’re supposed to be able to access. Not only is such a situation frustrating, but it can really cut into your productivity. Every minute that you spend fighting with the computer is a minute that you could have spent working on your project. In this Daily Drill Down, we’ll explain some techniques that you can use to diagnose and correct problems with file sharing.

Where is the file?
Before you can begin the diagnostic process, you first must ask yourself the simple question, “Where is the file located?” Although it may seem like a no-brainer, it’s a critical step. Before you even think about troubleshooting, you need to know the name of the machine that contains the shared resource, the name of the share point associated with the resource, and, most importantly, whether the file resides on a Windows NT machine or on a Windows 98 machine.

Basic techniques
As I said earlier, the technique that you use for troubleshooting will depend heavily on which operating systems are involved. However, before I get into the nitty-gritty of operating system specific techniques, you should check some things that apply to both operating systems. I suggest that you perform the following tests in the order that I discuss them.

Test connectivity
One of the first steps in the troubleshooting process is to test the connectivity between the computer containing the shared resources and the computer that’s trying to access the shared resources. The easiest way of doing so is to try to access another share on the same computer. If you can access another share on that computer, the connectivity is good. If you can’t, you need to figure out why.

The first step is to check out which network resources both machines can access. If one computer can access most of the network but the other computer can’t access anything on the network, then there’s obviously a problem with the second computer’s configuration. If it is the case, you need to begin the basic network troubleshooting techniques, such as checking for a bad cable or network card and reloading the network client.

If both PCs can access part of the network but can’t see each other, you may have a routing problem. This problem can occur when the two computers reside in different subnets and the router is set up incorrectly. Such a problem can also occur if there’s a protocol mismatch. For example, if the PC with the shared resource is running TCP/IP but the computer that’s trying to access that resource has only NetBEUI loaded, the two PCs won’t be able to communicate because they share no common protocols. If this is the case, you can easily correct the problem by adding the necessary protocol to the computer that’s trying to access the shared resource.

Try accessing other shares
If you were able to access another share on the computer or if the computer that’s hosting the shared resource is available through Network Neighborhood, there’s most likely either a permissions problem or a problem with the way that you’re trying to access the resource. Before we delve into the vast world of permissions, let’s take a quick look at techniques.

Proper access techniques
Since everyone does things a little bit differently, it’s impossible for us to know exactly which method you’re using to try to access the shared resource. Therefore, let’s begin by opening Internet Explorer and attempting to access the share that way.

Once you’ve opened Internet Explorer, go to the Address Bar and enter the UNC (Universal Naming Convention) path to the share. The UNC path looks something like \\COMPUTER_NAME\SHARE_NAME. For example, if your computer is named Animal and the share is named Stuff, the UNC path would be \\ANIMAL\STUFF. If you still have problems accessing the share in this manner, remember that, if you’ve specified a hidden share, you must affix a dollar sign to the share name. For example, if the share name that I’ve just given you were hidden, you’d reference it by typing \\ANIMAL\STUFF$.

If using the UNC reference gets you into the shared resource, you’re in business. You can map a network drive letter to the resource to make accessing it easier. To do so, open Windows Explorer and select the Map Drive command from the Tools menu. When you see the Map Network Drive dialog box, select the desired drive letter and enter the share’s UNC in the space provided. If you want to make the drive permanent, select the Reconnect At Login check box before clicking OK.

If you’ve been unable to access the shared resource up to this point, it’s most likely a permissions problem. One way of checking is to log in as a user who isn’t having trouble with accessing the share and to try to access the resource. If you can access the resource as that user, it’s definitely a permissions problem. If no one can access the share from any PC, it still may be a permissions problem. As I mentioned earlier, the method that you’ll use to troubleshoot a permissions problem will depend on the operating system that the PC hosting the file is running. We’ll begin by discussing what to do if that PC is running Windows NT; we’ll discuss Windows 98 later in the Drill Down.

Windows NT Server
As you probably know, security is Windows NT’s specialty. Therefore, it’s entirely possible that Windows NT has been set accidentally to deny access to the resources in question. In the sections that follow, we’ll discuss some techniques that you can use to track down these accidental denials of resources.

File permissions vs. share permissions
It’s important to point out that Windows NT is capable of setting permissions at the file level and at the share level. When you’re fighting a permissions problem, it’s important to know this fact. Having full access to the share won’t do users any good if they’ve been denied access at the file level.

Checking a share’s permissions
To check the file level permissions, right-click on the directory that contains the resources and choose the Properties command from the shortcut menu. When you do, you’ll see the folder’s properties sheet. Next, select the Security tab and click the Permissions button. You’ll see the permissions that are assigned to the directory, as shown in Figure A. Usually, the same permissions will apply to all the files and directories beneath that point, but if you want to make sure, select both check boxes that are shown in the figure and click OK.

Figure A
Make sure that the appropriate permissions are set at the file level.

Next, you need to check the share’s permissions. Just right-click on the directory in question (or a shared directory above it) and select the Properties command from the shortcut menu. When you see the directory’s properties sheet, select the Sharing tab, and you’ll see the share information that’s shown in Figure B. Verify that the directory is indeed being shared and confirm the share name and the number of users who are allowed to access the share.

Figure B
Verify the share name and the number of users who are allowed to use the share.

Finally, verify the share’s permissions by clicking the Permissions button. When you do, you can verify access to the share, as shown in Figure C.

Figure C
Make sure that the necessary permissions are applied to the share.

Who owns the file?
If you’ve checked the file and share permissions but are still having no luck, try checking the resources ownership. In some situations, Windows NT has been known to deny access to everyone except the owner of a folder. To check for this condition, right-click on the folder and select the Properties command from the shortcut menu. When you see the folder’s properties sheet, select the Security tab and click the Ownership button. Doing so will display the folder’s ownership information, as shown in Figure D. If you want to make a change, you can take ownership by clicking the Take Ownership button.

Figure D
Use the Owner dialog box to verify ownership and to take ownership, if necessary.

Windows 98
Windows 98 is much easier to check than Windows NT because it deals only with share permissions, not with file permissions. Therefore, as long as users have appropriate rights to the share point, nothing is stopping them from accessing the resource. You can set security on a share by using one of two methods, which we’ll discuss next.

User level access vs. share level access
To see which security model Windows 98 is set to use, open Control Panel and double-click the Network icon. When you do, you’ll see the Network Properties sheet. At this point, select the Access Control tab. As you can see in Figure E, the type of access can be set to either share-level access or user-level access.

Figure E
Windows 98 can use user-level access or share-level access.

Share-level access allows you to protect each share point with a password. You can use one password for read-only access and another password for full access. User-level access, on the other hand, allows you to specify which users have what type of access to any given share.

If the system is set to use share-level access but you’re still having trouble accessing it, you might try temporarily removing any passwords that you’ve assigned to the share and seeing if that makes a difference. If you find the passwords to be the cause of the problem, check to see in which case you’re entering the passwords—Windows passwords are case sensitive.

If you chose user-level access, check to see if your name is on the list. If it is on the list but the permissions are set to read-only, try setting full permissions. If it doesn’t work, try accessing the share as one of the other users on the list.

If nothing works, try removing the share. Once you’ve done so, reboot the computer and reestablish the share.

I’ve made every effort to guide you through the process of troubleshooting most of the more common file sharing problems. However, it’s impossible to cover every possible situation. For example, there are some strange file sharing problems associated with Windows 98 computers that are attached to some types of NetWare servers. However, space prohibits me from even beginning to talk about NetWare. If you run into a strange file sharing problem that I wasn’t able to cover, I suggest that you search the Microsoft Knowledge Base .

Not being able to access a shared file can be frustrating and can seriously cut into productivity. In this drill down, I discussed some ways of figuring out why you’re having trouble accessing the resources in question. Then, I explained how to correct those problems.

Talainia Posey learned to handle PCs the old-fashioned way: by reading manuals and doing on-the-job troubleshooting. Her experience also includes installing networks for several small companies. When she’s not working on computers, Talainia loves to shop for toys and watch cartoons or to spend time with her cat, Beavis.

The authors and editors have taken care in preparation of the content contained herein, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for any damages. Always have a verified backup before making any changes.