Configure CIFS Symbolic Links

The Configure CIFS Symbolic Links page enables you to configure and control CIFS access to symbolic links.

A symbolic link is a special file created by NFS clients that points to another file or directory. A symbolic link is, in some respects, similar to a shortcut in the Windows environment.

There are two types of symbolic links:

CIFS clients cannot create symbolic links, but they can follow the symbolic links created by NFS clients.

You can control how CIFS clients follow symbolic links in the following ways:

Preventing access of CIFS clients to symbolic links to files:

You should prevent CIFS clients from following symbolic links that point to files because Data ONTAP can update the wrong files. This problem occurs because many CIFS client applications perform operations such as writing to a temporary file, renaming the original file to a backup name, then renaming the temporary file to the original file name.

If the original file was targeted directly by a symbolic link, this sequence of operations would result in the file being stored in the directory where the symbolic link was, and the renamed symbolic link pointing at the original file rather than to the updated file.

Note: CIFS clients following symbolic links to directories (versus files) do not experience this problem.

Preventing CIFS access to symbolic links

You can prevent CIFS clients from following symbolic links that point to files in one of two ways:

Preventing access of CIFS clients to symbolic links that refer to a directory higher in the same tree (cyclic directory structures):

A cyclic directory structure is one that includes a symbolic link that uses a "dot" or "dot-dot" component to make a reference to a directory that is higher in the same tree.

A CIFS client following a cyclic directory structure looks deeper and deeper into the tree until Data ONTAP reaches its maximum path length. When this happens, Data ONTAP returns an error.

Preventing CIFS access to cyclic directory structures

You can prevent CIFS access to cyclic directory structures in one of two ways:

Related Topics