Mounting a File System on a Windows Instance Using SMB

General Prerequisites

Specific Prerequisites for SMB Support

Using the SMB protocol requires that the Microsoft Windows instances and Compute Cloud@Customer belong to the same Active Directory domain.

This procedure assumes that the AD service is already configured in your data center infrastructure.

To add a Microsoft Windows instance to your AD service, perform the necessary administrative tasks according to the documentation for your version of Microsoft Windows OS.

To add the Compute Cloud@Customer to your AD service, Oracle must add the AD domain name to the Oracle Cloud Infrastructure Active Directory Domain configuration. To request this administrative action, submit a support request. See Creating a Support Request. To access support, sign in to the Oracle Cloud Console as described in Sign In to the OCI Console.

Relaxing File System Permissions Before Network Mapping with SMB

By default, write permissions to a file system are limited to the UNIX superuser and group identity. To provide write permission to AD domain users, the permissions need to be relaxed.

  1. Mount the network drive using NFS protocol.

    See Mounting a File system On a Windows Instance Using NFS.

  2. Relax the file system permissions:

    1. Open File Explorer, select the mapped drive and right-click it, then select Properties.

    2. Select the NFS Attributes tab.

    3. Change File permissions by checking all RWX check boxes to relax the permissions for Owner, Group, and Other.

    4. Click OK.

  3. Disconnect the NFS-mounted drive.

    Now that the file system permissions are relaxed, you can mount the file system using the SMB protocol.

Mounting a File System Using SMB

  1. Log into your Microsoft Windows instance.

  2. Open File Explorer and select This PC.

  3. In the Computer tab, select Map network drive.

  4. In the Folder field, enter the following line and replace these items:

    • 10.x.x.x with the mount target IP address.

    • fs-export-path-ID with the file system export path (see Creating an Export for a File System).

      Note – Do not include \export in the fs-export-path-ID string when mounting using SMB.

    \\10.x.x.x\fs-export-path-ID

    Example:

    \\192.0.2.0\39u21btystm8x1axizezb9a3lfnpzjho98evi3ij450i96vj0a8jpf36au26
  5. select the 'Drive' letter of any available drive you want to map the file system to.

  6. If needed, select the Connect using different credentials check box.

  7. Click Finish.

  8. When prompted, provide the user name and password of the AD domain user used for mapping the network drive.

  9. Click OK.

  10. In a Command Prompt window (cmd), verify that the drive is properly mapped using this command:

    C:\>net use
    New connections will be remembered.
    Status       Local     Remote                    Network
    -------------------------------------------------------------------------------
    OK           Z:        \\10.0.0.2\uvj1iw6ytyecqijcbdgpy7ec15mgsv044i7609giqx7ukfn6t2pwgfqot0ma
                                                    Microsoft Windows Network
    The command completed successfully.
    C:\>