- You deploy a Distributed File System (DFS) root named \\dfs-share\users. Several DFS links exist under the root.
- These DFS links represent the home directories of several users.
- You want to enable Access-based Enumeration on the \\dfs-share\users root so that users see only their home directories when the users enumerate the root.
- Use administrative credentials to log on to Windows Server 2003.
- Use the Cacls utility to set the appropriate access control lists (ACLs) on the DFS links. (The Cacls utility is included in Windows Server 2003.)
For example, make the ACL on the link the same as the ACL on the target of the link. Therefore, if \\dfs-share\users\johndoe links to a target named \\server1\share1\johndoe, make the ACL on \\dfs-share\users\johndoe the same as the ACL on \\server1\share1\johndoe. If the target is on a Windows-based computer, type cacls at the command prompt to verify the ACL. For more information about the Cacls utility, type cacls /? at a command prompt.
- Apply the Access-based Enumeration property on each root share by using the ABEUI utility. To obtain this utility, visit the following Microsoft Web site:http://www.microsoft.com/downloads/details.aspx?FamilyID=04a563d9-78d9-4342-a485-b030ac442084&DisplayLang=enNote Set the Access-based Enumeration property on each replicated root share.
- As soon as the domain root and the links are replicated, use the Cacls utility to manually set the ACLs on the replicated links. Repeat this step for all replicas. However, first make sure that the root and links have been fully replicated on the target.
- In a cluster environment, when a node fails over to another node, DFS removes all the DFS links and recreates them on every failover. When failover occurs, ACLs must be reapplied on the links. To automatically reapply links after a failover, follow these steps:
- From the cluster administrator console, create a script resource. Make sure that this new resource is part of the same group as the DFS and as the share resources.
- Add the script resource to the script resource that sets the ACLs for each DFS link.
- Make the new script resource dependent on the DFS resource. This step makes sure that the new script resource is run only after the DFS links are created on the new failed over node.
- Take the group offline, and then put the group back online to make sure that the new script resource works.
- Restart the Distributed File System (DFS) service. To do this, follow these steps:
- Click Start, click Run, type cmd, and then click OK.
- Type net stop DFS, and then press ENTER.
- Type net start DFS, and then press ENTER.
Sometimes, the ACLs on links are reset and must be reapplied. ACLs are reset in the following scenarios:
- A DFS root is restored by using the DFS utility (Dfsutil.exe). The ACLs on the DFS links are not preserved and are reset.
- DFS roots are exported and then imported to another location. The ACLs on the DFS links are not preserved and are reset.
- If you add a new DFS root target, the links do not receive the appropriate ACLs because the links are created for the first time.
- If you rename a DFS link, the DFS service deletes and recreates the link. The ACL on the link is reset.
- If you delete multi-component links, DFS removes any empty intermediate directories. Any ACL that was set on a directory is lost when a directory is removed. When you create a new multi-component link by using the same path, you must reapply all ACLs on the intermediate directories.
If the ACL on the DFS link is not set to match the ACL on the target, the following conditions may be true:
- If the ACL on the link is more restrictive than the ACL on the target, the link will not be displayed. However, if the user knows the name of the link, the user can locate the appropriate path and see the contents of the target.
- If the ACL on the link is less restrictive than the ACL on the target, the link is displayed. However, when the user locates the link, the user sees an "Access Denied" message.
ID do Artigo: 907458 - Última Revisão: 04/01/2008 - Revisão: 1