Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated links in the proper manner.

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 VMs 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.

Buurst's SoftNAS uses Samba Windows File Sharing for secured, stable and fast file sharing and print services. It allows the networking of Microsoft Windows®, Linux, UNIX, and other operating systems together, enabling access to Windows-based file and printer shares. Samba seamlessly integrates Linux/Unix Servers and Desktops into Active Directory environments using the winbind daemon.

Covered in this document:

Table of Contents

Image RemovedImage Added

1.

 

Shared Files Grid

  •  The Shared Files Grid displays the list of all shared files in a tabular grid format. It has the following fields.


Field

Description

Share Name

It is the name of the share.

Path

It specifies the path that is shared.

Security

It shows the type of security available for the share.


2. Selecting All Shares

  •  Located along the top of the Samba File Sharing Wizard.
You can select all the file shares. To do so, simply click the

  •  Click the Select All button
.All
  • and all the shared files in the list will be selected.

3. Inverting Selection

  •  Located along the top of the Samba File Sharing Wizard.
You can invert the selection of the file shares. To do so, simply click the

  •  Click the Invert Selection button
.The
  • and the selection of the shared files in the list will be inverted.
 3

4. Creating a New File Share

Located along the top of the Samba File Sharing Wizard.

Note
Before you start creating a new file share, it is better to configure the default windows network environment settings.
  •  On the CIFS Shares panel, click the Create a New File Share link.

The
  •  The Create File Share section of the panel will be displayed.

  1. Enter Select the first button and enter the name of the share that will appear as the network mount point in the Share Name text entry box.

  2. The Directory to share is the path to the Volume that was created in the prior step. Click the Browse button to select the Volume from the filesystem for sharing.

  3. Set the Automatically Create Directory field option to be Yes.

  4. The Create with Owner field determines which Linux user will be assigned to the shared folder.

  5. Enter the permission mask in the Create with Permissions text entry box.

    Example,

    Info

    EXAMPLE: 777 is read/write/execute

    for all users.


  6. The Create with Group field determines which Linux group will be assigned to the shared folder.

  7. To make the share to be available on the network, check the Yes option in the Available field.

  8. To make the share to be browsable on the network, check the Yes option in the Browsable field.

  9. Enter In the Share Comment text box, enter the comment if any to display to users who browse the share, in the Share Comment text entry box.

  10. Click Once done, click the Create button.

Image Removed


  •  The new file share will be created and
published for access by windows servers and clients. 

Image Removed

4
  • is viewable from the Shared Files Grid.

Image Added

5. Creating a New Printer Share

Located along the top of the Samba File Sharing Wizard.

Creating a new printer share is easy. Simply follow the steps given below.

Click
  •  On the CIFS Shares panel, click the Create a New Printer Share
button
  • link.

The
  •  The Create Printer Share page will be displayed. 
  1. In the Share name field, make sure the first button is selected and enter a unique alphanumeric name for your share into the text box.

    Note
    This should be the same as the name of the Unix printer you select in the next step to avoid confusion. If an automatically created printer share with the same name already exists, this new one will override it.


  2. From the Unix printer drop down listPrinter field, select the printer to make available to SMB clients.

  3. In the Spool directory field, enter or browse for the name of a directory in which temporary files for printing are stored.

  4. To disable this printer so that it cannot be used, change the Available? field  field to No.

  5. To hide this printer from the list that appears when the server is browsed, change the Browseable

    ? field

     field to No.

    Info
    It will still be directly accessible using a \\servername\printername path
    though
    .


  6. In the Share comment  Comment field, enter a short description for this printer.

  7. Click Once done, click the Create button to add the share to the Samba configuration. 

You can edit this share and configure security options.

Image Removed

5

Image Added

6. Creating a New Copy

Located along the top of the Samba File Sharing Wizard.

To create a new copy share:

  •  Click the Create a New Copy
button
  •  link.

  • The Create Copy page will be displayed. 
  1. Select the name of the share from the existing shares Share to copy from drop down list.

  2. Enter the new name for the share in the New share name text entry box.

  3. Click Once done, click the Create button. 

The new copy share will be created.

Image Removed

6

Image Added

7. Viewing All Connections

Located along the top of the Samba File Sharing Wizard.You can

  •  Click the View all connections link to view all users and their connections through file sharing.
To do so, simply click the View All Connections button.

All the users of the shared files will be displayed.

7.

8. Deleting Selected Shares

Located just under the "Share Name" section.

You can delete a share that is no longer being used.

Shared Files Grid

  •  Select the shares that you wish to delete from the list of shares.

  •  Click the Delete Selected Shares button.
 

All the selected shares will be removed.

Image Removed

Image Added

8. Configuring Unix Networking

You can configure Unix networking options.

To do so, click
  •  Click the Unix Networking icon in the Global Configuration section.

The
  •  The Unix Networking Options page will be displayed. 
  1. Specify the Idle time before disconnect in the field. The default is Never.

  2. Specify the Trusted hosts/users file in the field. The default is None.

  3. Specify the Network interfaces with interface and netmask .

  4. If using list, enter the Interface and Netmask details.

  5. Specify the Keep alive packets in the field. The default is Don't send any.

  6. Specify the Maximum packet size in the field.

  7. Specify the Listen on address in the field. The default is All.

  8. Specify the Socket options details.

  9. Click Once done, click the Save button. 

The changes made to Unix networking options will be updated

Image Removed

9

Image Added

10. Configuring Windows Networking

You can configure Windows networking options.

To do so, click
  •  Click the Windows Networking icon in the Global Configuration section.

The
  •  The Windows Networking Options page will be displayed. 
  1. Set the name of the workgroup in the Workgroup field.

    Note

    This setting should be appropriate to your environment.

    It should match your Windows workgroup or domain environment.


  2. Select the appropriate security option for your particular environment from the Security drop down list.

  3. The available
  4. Info

    Available options include:

    • Default
  5. ,
    • Share Level
  6. ,
    • User Level
  7. ,
    • Password Server
  8. ,
    • Domain
  9. and
    • Active Directory
  10. .


    Note
    Configuring other settings in the Windows Networking Options dialog is optional.
  11. Click the Save

  12. Once done, click the Save button.
  13.  

Now your environment is ready for CIFS sharing.

Image Removed

10

Image Added

11. Configuring Authentication

You can configure authentication options.

To
  •  1. To do so, click the Authentication icon in the Global Configuration section.

The
  •  The Password Options page will be displayed. 
  1. The Use encrypted passwords field

    determines if Samba uses its own separate password file or the standard Unix user database. Because

    should generally be set to Yes because all recent versions of Windows use a password encryption format that is incompatible with the Unix format

    , this field should generally be set to Yes

    .

    Info
    This determines if Samba uses its own separate password file or the standard Unix user database.


  2. To allow logins by users who have no password set, select Yes for the Allow null passwords field.  The default is No.

  3. The Password program field sets the program that Samba will use to change a user's Unix password if synchronization is enabled. If Default is selected/bin/passwd will be used.

  4. To change a user's Unix password when his SMB password is changed over the network, set the Change Unix password as well field to Yes.

  5. Similarly specify password in the Change Password Chat field.

  6. To define fake SMB accounts, select Listed below in the Username mapping field. Enter a valid Unix username, and an SMB login name of your choice.

  7. Click Once done, click the Save button.

Image RemovedImage Added

11

12. Configuring Windows to Unix Printing

You can configure Windows to Unix Printing options.

To do so, click
  •  Click the Windows to Unix Printing icon in the Global Configuration section.

The
  •  The Printing Options page will be displayed. 
  1. Select the type of print system in use on your box from the Unix print style drop down list.

    The available options are

    Info

    Available options include:

    • BSD
     -The traditional Unix print software, found on FreeBSD? , NetBSD? and older Linux distributions.
    • SYSV
     - The print system used on Solaris, UnixWare? and a few other versions of Unix.
    • HPUX
     -The print system shipped with HP/UX.
  2. AIX -The print software that comes with AIX, IBM's version of Unix.
  3. CUPS -The superior Common Unix Print System, which is included with many new Linux distributions.
  4. LPRNG - An improved version of the old BSD print system, used on all Linux systems that do not run CUPS.
  5. Normally, Samba will
    • AIX
    • QNX
    • PLP
    • CUPS
    • LPRNG
    • SOFTQ


  6. Samba will typically find all the printers on your system and make them visible to clients when the special printers share exists. To disable this, change the Show all printers? field  field to No.

  7. When the Printcap file field is set to Default, Samba will get the list of printers available on your system from the standard /etc/printcap file.

  8. Samba caches the output from whatever command is used to list waiting print jobs (such as lpq) in order to reduce the frequency with which it is run. By default this cache The Default cache time is 10 seconds, but you can increase or decrease it using the Printer status cache time field.

  9. Click Once done, click the Save button to activate your new printing settings.

Image Removed

12

Image Added

13. Configuring Winbind Options

You can configure Winbind options.

To do so, click
  •  Click the Winbind Options icon in the Global Configuration section.

The
  •  The Winbind Options page will be displayed.
  1. Enter the full domain name of your Windows

    domain; e.g., SOFTNAS.LOCAL, MYDOMAIN.COM, etc. in

    domain in the Kerberos Realm on Domain Server text entry box.  Examples are SOFTNAS.LOCAL or MYDOMAIN.COM.

  2. Enter the range as 10000-30000 in the Range of UIDs for Windows Users text entry box.

    Info
    Using this numeric range, the mapping of Windows user ID's to Linux UID's occurs dynamically.


  3. In a similar manner, enter Enter the range as 10000-30000 in the Range of UIDs for Windows Groups text entry box for mapping of groups.

  4. Click Once done, click the Save button.


Image RemovedImage Added

13

14. Managing Samba Users

The Managing Samba Users section allows you to create, edit, delete and synchronize Samba users.

It has the following options.

  •  Samba Users – It allows you to define Samba users.

  •  Convert Users – It allows you to synchronize the Unix and Samba user list.

  •  User Synchronization - It allows you to configure Webmin so that changes to the Unix user list will automatically applies to the Samba user list also.

  •  Samba Groups – It allows you to define Samba groups.

  •  Group Synchronization – It allows you to synchronize all Unix user groups and Samba user groups.

  •  Bind to Domain –It allows to bind Samba server to Windows domain typically managed by a different server.

Image Added

14

15. Restarting Samba Servers

You can restart Samba servers. To do so, simply click Click the Restart Samba Servers button.  This will force the current configuration to be applied and also all the connections to the server will be disconnected.

15

16. Stopping Samba Servers

You can stop or shut down the working of Samba servers. To do so, simply click the Click the Stop Samba Servers button.  This will force the samba servers running on your system to shut down and also all the connections to the server will be disconnected.

16

17. Restart Winbind Servers 

You can restart Samba servers. To do so, simply click Click the Restart Winbind Servers button.  This will force the current configuration to be applied and also all the connections to the server will be disconnected.

17

18. Stop Winbind ServersYou can stop or shut down the working of Winbind servers. To do so, simply click the

Click the Stop Winbind Servers button.  This will force the samba servers running on your system to shut down and also all the connections to the server will be disconnected.

19. Manage Security and Access Control in a CIFS Share

  1. On the CIFS Shares panel, click the name of the CIFS share link.  The Share Information dialog will be displayed.

  2. 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.

    Note
    titleSettings Note
    The settings shown below allow full read/write access by all users. 



  3. Set the Writable field to Yes so that writing is allowed in the files that are shared.

  4. Set the Guest Access field to Yes in order to allow the guest users to access the files.

  5. Set the Guest Unix User to Nobody so that other guest unix users are not allowed to access the file sharing.

  6. Set the Limit to Possible List to No in order to allow unlimited sharing.

  7. Set the Hosts to Allow to All in order to allow all hosts access file sharing.

  8. Accordingly, set the Hosts to Deny to None.

  9. 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.

  10. Once configurations are complete, click Save.  The share security permission settings are now configured.

Image Added

Image Added

Image Added

20. Verifying Access to the CIFS Share

  1. To verify access the CIFS share, navigate to Windows System > Windows Explorer.

  2. Enter the UNC path of the SoftNAS® server (or the DNS hostname if one has been assigned to SoftNAS®).

  3. Click on the Share icon and verify access permissions are set correctly from the Windows perspective.

  4. 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.


Image Added