Table of ContentsView in Frames

Configuring UNIX symbolic link support on SMB shares

You can configure UNIX symbolic link support on SMB shares by specifying a symbolic link share-property setting when you create SMB shares or at any time by modifying existing SMB shares. UNIX symbolic link support is enabled by default. You can also disable UNIX symbolic link support on a share.

About this task

When configuring UNIX symbolic link support for SMB shares, you can choose one of the following settings:
Setting Description
enable This setting specifies that symbolic links are enabled for read-write access. This is the default setting.
read_only This setting specifies that symbolic links are enabled for read-only access. This setting does not apply to widelinks. Widelink access is always read-write.
hide This setting specifies that SMB clients are prevented from seeing symbolic links.
"" (null, not set) This setting disables symbolic links on the share.
- (not set) This setting disables symbolic links on the share.

Steps

  1. Configure or disable symbolic link support:
    If it is... Enter...
    A new SMB share vserver cifs share create -vserver vserver_name -share-name share_name -path path -symlink-properties {enable|hide|read_only|""|-},...]
    An existing SMB share vserver cifs share modify -vserver vserver_name -share-name share_name -symlink-properties {enable|hide|read_only|""|-},...]
  2. Verify that the SMB share configuration is correct: vserver cifs share show -vserver vserver_name -share-name share_name -instance

Example

The following command creates an SMB share named "data1" with the UNIX symbolic link configuration set to enable:

cluster1::> vserver cifs share create -vserver vs1 -share-name data1 -path /data1 -symlink-properties enable

cluster1::> vserver cifs share show -vserver vs1 -share-name data1 -instance

                          Vserver: vs1
                            Share: data1
         CIFS Server NetBIOS Name: VS1
                             Path: /data1
                 Share Properties: oplocks
                                   browsable
                                   changenotify
               Symlink Properties: enable
          File Mode Creation Mask: -
     Directory Mode Creation Mask: -
                    Share Comment: -
                        Share ACL: Everyone / Full Control
    File Attribute Cache Lifetime: -
                      Volume Name: -
                    Offline Files: manual
    Vscan File-Operations Profile: standard
Maximum Tree Connections on Share: 4294967295
       UNIX Group for File Create: -