CIFS is intended to provide an open cross-platform mechanism for client systems to request file services from server systems over a network. It is based on the standard Server Message Block(SMB) protocol widely in use by personal computers and workstations running a wide variety of operating systems. In the world of NAS, there are 2 main protocols used: CIFS & NFS. As where NFS is used for serving data to Unix based clients, CIFS is intended to be used for serving data to Windows clients. In computer networking, Server Message Block (SMB), also known as Common Internet File System (CIFS) operates as an application-layer network protocol mainly used for providing shared access to files, printers, serial ports, and miscellaneous communications between nodes on a network. SMB works through a client-server approach, where a client makes specific requests and the server responds accordingly. One section of the SMB protocol specifically deals with access to filesystems, such that clients may make requests to a file server. Supported Windows clients and domain controllers Storage systems running Data ONTAP can provide services to a specific set of Windows clients and domain controllers. Supported Windows clients: Windows Windows Windows Windows Windows Windows Windows Windows Windows Windows Windows 7 Server Server Vista Server Server XP 2000 NT 98 95 2008 R2 2008 2003 R2 2003 Supported domain controllers: Windows Windows Windows Windows Windows Windows Server Server Server Server 2000 NT 2008 R2 2008 2003 R2 2003 Setting up your system initially When a valid CIFS license is present, Data ONTAP automatically invokes the cifs setup command during the initial setup of your storage system. The cifs setup command prompts you for information such as authentication type, lookup services to be used, and so forth. Changing the storage system domain If you have already configured your storage system for Windows Domain authentication and you want to move the storage system to a different domain, you need to run the cifs setup command. Steps 1.If CIFS is currently running, enter the following command: cifs terminate 2.Run the cifs setup command: cifs setup The following prompt appears: Do you want to delete the existing filer account information? [no] 3.To delete your existing account information, enter the following: Yes After deleting your account information, you are given the opportunity to rename the storage system: The default name of this filer will be 'filer1'. Do you want to modify this name? [no]: Cont…..! 4.To keep the current storage system name, press Enter; otherwise, enter yes and enter a new storage system name. Data ONTAP displays a list of authentication methods: Data ONTAP CIFS services support four styles of user authentication. Choose the one from the list below that best suits your situation. (1) Active Directory domain authentication (Active Directory domains only) (2) Windows NT 4 domain authentication (Windows NT or Active Directory domains) (3) Windows Workgroup authentication using the filer's local user accounts (4) /etc/passwd and/or NIS/LDAP authentication Selection (1-4)? [1]: 5. To accept the default method for domain authentication (Active Directory), press Enter. Otherwise, choose a new authentication method 6. Respond to the remainder of the cifs setup prompts. To accept a default value, press Enter. Upon exiting, the cifs setup utility starts CIFS 7. To confirm your changes, enter the following command: cifs domaininfo Creating a CIFS share from the Data ONTAP command line You can create a CIFS share from the Data ONTAP command line by using the cifs shares -add command. Step To create a CIFS share, enter the following command: cifs shares -add sharename path [ -f ] [ -comment description ] [ -maxusers userlimit ] [ -forcegroup groupname ] [ -nosymlink_strict_security ] [ -widelink ] [ -umask mask ] [ -dir_umask mask ] [ -file_umask mask ] [ -nobrowse ] [ -novscan ] [ -novscanread ] [ -no_caching | -auto_document_caching -auto_program_caching ] [ -accessbasedenum ] Cont…..! -f Suppress confirmation dialogs, if any. This option will be deprecated in future releases. A warning will be issued when share-names exceed 8 characters. -comment description description of the new share. -maxusers userlimit maximum number of simultaneous connections to the new share. userlimit must be a positive integer. If you do not specify a number, the filer does not impose a limit on the number of connections to the share. -forcegroup groupname name of the group to which files to be created in the share belong. -novscan do not perform a virus scan when clients open files on this share. -novscanread do not perform a virus scan when clients open files on this share for read access. -no_caching disallow Windows clients from caching any files on this share. Example cifs shares -add webpages /vol/vol1/companyinfo -comment "Product Information“ -maxusers 100 Displaying the properties of a share You can display the properties of a share from the Data ONTAP command line by using the cifs shares command. Step Enter the following command: cifs shares sharename sharename is the name of a single share. If you omit sharename, the properties of all shares are displayed. ata ONTAP displays the share name, the path name of the directory that is shared, the share description, and the share-level ACL. Changing the properties of a share You can change the properties of a share from the Data ONTAP command line by using the cifs shares command. cifs shares -change sharename { -comment description | -nocomment } { -maxusers userlimit | nomaxusers } { -forcegroup groupname | -noforcegroup } { nosymlink_strict_security | -symlink_strict_security } { -widelink | -nowidelink } { -umask mask | -noumask } { -dir_umask mask | -nodir_umask } { -file_umask mask | -nofile_umask } { -nobrowse | -browse } { -novscan | -vscan } { -novscanread | -vscanread } { -no_caching | -manual_caching -auto_document_caching | -auto_program_caching } { -accessbasedenum | -noaccessbasedenum } Deleting a share You can use the cifs shares command to delete a share from the Data ONTAP command line. Step Enter the following command: cifs shares -delete [-f] sharename -f option forces all files closed on a share without prompting. This is useful when using the command in scripts. sharename specifies the name of the share you want to delete. Changing a share-level ACL You can change a share-level ACL from the Data ONTAP command line by using the cifs access command. Step Enter the following command: cifs access share [-g] user rights share is the name of the share (you can use the * and ? wildcards). user is the name of the user or group (UNIX or Windows). If user is a local group, specify the storage system name as the domain name (for example, toaster\writers). rights are the access rights. For Windows users, you specify one of these choices of access rights: No Access, Read, Change, Full Control. For UNIX users, you specify one of these choices of access rights: r (read), w (write), x (execute). Use the -g option to specify that user is the name of a group Examples cifs access releases ENGINEERING\mary Read Removing a user or group from a sharelevel ACL You can remove a user or group from an ACL using the Data ONTAP command line. Step Enter the following command: cifs access -delete share [-g] user share is the name of the share (you can use the * and ? wildcards). user is the name of the user or group (UNIX or Windows). If user is a local group, specify the storage system name as the domain name (for example, toaster\writers). Use the -g option to specify that user is the name of a UNIX group (that is, that user is not a UNIX user, Windows user, or Windows group). Example: cifs access -delete releases ENGINEERING\mary CIFS Commands cifs domaininfo cifs prefdc cifs audit cifs resetdc cifs stat cifs restart cifs terminate cifs sessions cifs testdc cifs lookup