Creating a CIFS Share
The Common Internet File System (CIFS) is the standard way that computer users share files across corporate intranets and the Internet. It provides users with seamless file and print interoperability between SoftNAS® and Windows-based clients. CIFS allows multiple clients to access and update the same file while preventing conflicts by providing file sharing and file locking.
SoftNAS® uses Samba Windows File Sharing for secure, stable, and fast file sharing and print services. Samba integrates Linux/Unix Servers and Desktops into Active Directory environments using the winbind daemon.
Note: Before creating a new file share, configure the default Windows network environment settings.
Configuring Windows Networking Settings
- Log on to SoftNAS StorageCenter.
- In the Left Navigation Pane, select the CIFS option under the Storage section.
The CIFS Shares panel will be displayed. From here, configure and manage CIFS sharing. - Click the Windows Networking icon in the Global Configuration section.
The Windows Networking Options dialog will be displayed. - Set the name of the workgroup in the Workgroup field. This setting should be appropriate to the planned environment. It should match a Windows workgroup or domain environment.
- Select the appropriate security option for this particular environment from the Security drop down list. The available options include Default, User Level, Password Server, Domain, Active Directory and Auto, with Auto as the default security level.
Note: Configuring other settings in the Windows Networking Options dialog is optional. - Click Save.
Now this environment is ready for CIFS sharing.
Creating a New CIFS Share
- On the CIFS Shares panel, click the Create a New File Share link.
The Create File Share section of the panel will be displayed
. - Enter the name of the share that will appear as the network mount point in the Share Name text entry box.
- The Directory to share is the path to the Volume that was created in the prior step. Click Browse to select the Volume from the filesystem for sharing.
- Set the Automatically Create Directory field option to Yes.
- The Create with Owner field determines which Linux user will be assigned to the shared folder.
- Enter the permission mask in the Create with Permissions text entry box. Example, 777 is read/write/execute for all users.
- The Create with Group field determines which Linux group will be assigned to the shared folder.
- To make the share available on the network, check the Yes option in the Available field.
- To make the share browsable on the network, check the Yes option in the Browsable field.
- Enter a comment (if applicable) that will display to users who browse the share, in the Share Comment text entry box.
- Click Create.
The new file share will be created and published for access by Windows servers and clients.
Managing Security and Access Control in CIFS Share
- On the CIFS Shares panel, click the name of the CIFS share link.
- The Edit File Share dialog will be displayed.
To configure and manage security and access control, click the Security and Access Control icon.
The Security and Access Control dialog will be displayed. Choose the settings that best match the needs and use case for this share.
The settings shown below allow full read/write access by all users. - Set the Writable field to Yes so that writing is allowed in the files that are shared.
- Set the Guest Access field to Yes in order to allow the guest users to access the files.
- Set the Guest Unix User to Nobody so that other guest unix users are not allowed to access the file sharing.
- Set the Limit to Possible List to No in order to allow unlimited sharing.
- Set the Hosts to Allow to Yes in order to allow all hosts access file sharing.
- Accordingly, set the Hosts to Deny to None.
- The Revalidate Users share-level option tells Samba to force users to authenticate with passwords each time they connect to a different share on a machine, no matter what level of security is in place on the Samba server. The default value is
no
, which allows users to be trusted once they successfully authenticate themselves. - Click Save.
The share security permission settings are now configured.
Verifying Access to the CIFS Share
- To verify access the CIFS share, navigate to Windows System > Windows Explorer.
- Enter the UNC path of the SoftNAS® server (or the DNS hostname if one has been assigned to SoftNAS®).
- Click on the Share icon and verify access permissions are set correctly from the Windows perspective.
- Create a folder or text file and then right-click on the file/folder to verify that the Security permissions are as expected.
The CIFS share that was created is now available and ready for use.
Note: Use File Share Defaults to set defaults for all shares so that there is no need to configure settings for each share.