In order to mount a shared network folder in OS X, in general you first open a Finder window, where you will see a list of systems that are broadcasting network services, and upon clicking them you can provide authentication information to connect and mount their available shares.
When you mount a shared folder in this manner, the system uses a global mount point (within the hidden /Volumes directory at the root of the boot drive) to access the shared folder. This mount point can be seen by selecting Go to Folder from the Finder's Go menu and then typing in "/Volumes" to reveal the hidden Volumes directory. In here you should see internal hard-drive volumes such as those for your OS X installation and perhaps Boot Camp, and any other mounted volumes on locally attached drives (i.e., those on USB or FireWire drives).
The use of this mount point is convenient, but it does have one potential drawback in that mounted shares will at least be visible if not readable to any account on the system. Therefore, if you have two users logged into a system and you mount a network share in your account, then the share will show as being mounted in the second account. Luckily most permissions setups prevent the second user from accessing the share simultaneously, but despite this, the user can unmount the share from the system.
To prevent such access or even have the mounted network drive be detected by another user on the system, you can mount the share privately by using a mount point within your user account instead of a global one that is accessible by all accounts. To do this, you will first have to create a mount location in a convenient place, and then instruct the system to use that for mounting your network share.
- Get the server and share name
To mount a share privately, you will first need to know the server name or IP address, and then the name of the shared folder you are trying to mount. In addition, you will need to know if it is a Windows machine or a Mac that you are connecting to. The name of the server can usually be the name seen in the Finder's sidebar, after making a couple of modifications to the name. First take the name and remove any punctuation, followed by replacing spaces with dashes, and finally appending the word ".local" to the end of it. For example, one of my Macs is called "Topher's Mac Mini," so the name to use for accessing it on the network would be "tophers-mac-mini.local."
- Create a mount point
The next step is to create a mount point to use. You can create a mount point anywhere on the system for which you have access, but I prefer to use a mount point in the user home folder, so go to the Finder and create a folder called "mount" at the base of your home directory.
- Mount the share
The last step is to mount the shared folder at the newly created mount point, which will need to be done via the Terminal by running one of the following commands:
For OS X shared folders:
mount_afp -i afp://user@server/share mountpoint
For Windows shared folders:
mount_smbfs smb://user@server/share mountpoint
When finished the command should look something like the following:
mount_afp -i afp://firstname.lastname@example.org/tkessler ~/mount