Set up a Shared Drive on a Utility Server¶
With Frame, you can set up a shared network folder on a Utility Server just like you would on your local network. This allows team members to use the Frame account to collaborate on a common set of files and data. We’ll outline the steps to set up a shared drive below.
Enable Anonymous File Sharing
By default, anonymous file sharing is disabled on Windows Server 2016. If you are using the Windows Server 2016 image on your Utility Server or Sandbox, you will need to complete the following steps first before setting up a shared folder. The changes below should be applied to
- Power on your Utility Server from your Dashboard or resume the session if your Utility Server is already running.
- Click on the Start Menu in the bottom right corner and type “local security policy.” Click on the first option listed.
The Local Security Policy window will appear, navigate to Local Policies> Security Options. Change the following:
Accounts: Guest Account Status: Enabled
Network access: Let Everyone permissions apply to anonymous users: Enabled
Network access: Restrict anonymous access to Named Pipes and Shares: Disabled
Network access: Do not allow anonymous enumeration of SAM accounts and shares: Disabled
Create a Shared Folder¶
- Access your Utility Server by navigating to Dashboard>Systems>Utility Servers and clicking “Power on” above your desired Utility Server. Once the session is started, open up “ServerManager.exe.” You can do this by simply typing “server” into the search bar on your start menu.
If you are using AWS as your IaaS provider, you can skip ahead to step 7. If you are using Microsoft Azure, you will need to complete all steps.
- When the Server Manager window appears, click “Manage” on the top toolbar and then click “Add Roles and Features.”
- The “Add Roles and Features Wizard” will appear. Click next.
- Leave the default selection under “Installation Type” and click Next.
- Click Next.
- Select the box next to “File and Storage Services” and Click Install.
- Go to the Server Manager window and select “File and Storage Services”
- Next, click on “Shares,” and select “New Share…” from the TASKS drop down menu on the right.
- You’ll first be asked to select a share profile. “SMB Share - Quick” is fine. Click Next.
- Next, you’ll be asked to set the share location. Navigate to the “Type a custom path:” option at the bottom of the dialog. Select “Browse…”
- Navigate to and select the folder you wish to share.
- Click next.
- Give a share name and description. When you’re ready, click next.
- Deselect all three checkboxes on the “Other settings” window. Click Next.
Encrypt data access
If your share will store data, you may wish to select “Encrypt data access.” Keep in mind, encryption can impact the speed at which you are able to access files from the share.
- Click the “Customize permissions” button.
- Click the Share tab and highlight the Permission entry for “Allow, Everyone.” Then, click Edit.
- Check the box next to “Full Control” and click OK.
- On the next screen, click OK to go back to the Permissions page, and then click Next.
You will get a chance to confirm the details of your share – click “Create” if everything looks good.
Navigate to your newly created shared folder. Right-click on the folder and select “Properties.” Click on the “Sharing” tab and select “Advanced Sharing.”
Click “Permissions” and check the “Allow” box next to the Full Control permission. Click “OK” on each window. Continue to the next section to map your shared folder.
Map Your Shared Folder¶
- First, log in to your Utility Server and find the IP address (you will need to use the IP address to map the drive, as we cannot do this via hostname for security reasons). Load up command prompt and type:
- Hit Enter. Scroll until you find the line that says “IPv4 Address” and write down the IP listed next to it (pictured below).
- Now that you have the information you need, you can log out of your Utility Server and into your Sandbox.
- Once in the Sandbox, open the command prompt. We are now going to use the “net use” command to mount the network share. The syntax is net use, then the drive letter you want to assign to your share, then \utilityIPaddress\pathtoyoursharedfolder then /persistent after reboot? yes.
So it should look like:net use J: \\10.10.10.10\shared /p:y
- Hit Enter. The command prompt will inform you that the command has been completed successfully.
- To confirm, navigate to “My Computer” in your Sandbox and see if your mapped drive is present. If your drive was properly mapped, perform a publish to allow your production instances access to the newly mapped drive.