It's not possible to completely prevent access to the regional Shared Drive in Skytap without completely disabling the shared drive. As long as it is enabled, it will always be accessible from its network location at
//gw/shared (Linux) or
\\gw\shared (Windows) as long as the VM has a valid networking configuration.
The following instructions detail how you may disable access to the shared drive in a Skytap VM.
In Linux, you can remove the shared drive entry from /etc/fstab to prevent it from being mounted on boot. Below is an example of the shared drive entry in the /etc/fstab:
//gw/shared /media/shared_drive cifs user,guest,sec=none,rsize=61440,wsize=61440,noperm,vers=1.0 0 0
Removing the cifs-utils or any other installed package(s) that support SMB would also prevent access to the shared drive.
In Windows you can delete the shortcut to the Shared Drive that's located on the VM's desktop.
You can also disable SMB to prevent access to the shared drive - see the reference link below for detailed instructions. Do note, however, that any user who knows which steps need to be taken could re-enable access if they have sufficient permissions within the guest OS.
- How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows: https://docs.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3#disable-smbv1-by-using-group-policy
- Information on managing the shared drive: https://help.skytap.com/account-settings.html#Shareddrives
Article is closed for comments.