Remote mounting from MacOS X
To access your TCC account or print on a TCC printer from your MacOs X system:
To mount a share using the Finder, you will need at least Mac OS X 10.1. Previous versions of the OS do not contain the necessary features to support accessing SMB shares natively.
smb://workgroup;username@server/shareFor example, for account name you:
The second method of mounting an SMB share in OS X is to delve into its UNIX roots and use the command-line interface.
% mkdir myshare
# mount_smbfs -W workgroup //username@server/share ./myshareThis will mount the remote share as the myshare directory, which means that it will not appear on your Desktop, but you should be able to access it much like any other folder using the Finder.
Instead of having to re-enter your password, username, and workgroup every time, there's a shortcut available to you. You can create a file in your home directory called .nsmbrc (note the dot). This file has a simple format, explained below, and allows you to store the mounting information. One thing to note is that you should use the chmod command to change the permissions of the file to 0600 to protect your passwords.
Here's the general form of your ~/.nsmbrc file:
[netbios:username:share] addr=server_ip password=password workgroup=workgroup
Here's an example ~/.nsmbrc file:
[userhost:you:you] addr=220.127.116.11 password=password workgroup=TCC
This file is very straightforward. The line in brackets has three fields: [netbiosname:username:share]. So in the example, you're logging onto the userhost server as user you and trying to mount the you share (your home folder on userhost).
The second line is the actual IP address of userhost. This field is not optional on the campus network.
The third line is your password, and then the appropriate workgroup.
Now when you mount a share using the Finder, it won't prompt you for this additional information; you can just enter the server and share in the Connect to Server dialog and you're all set.
John Shipman, email@example.com
Last updated: 2003/08/08 22:02:10 UT