|
OSXFAQ Mac OS X Tip-of-the-Day 
Apple File Server (AFS) - Auto Mounting
By Adrian Mayo - Editor - OSXFAQ
Auto Mounting
Automatically mount AFS shares when they are accessed.
OS X is able to automatically mount shares (both AFS and NFS). This
can be done statically (at startup) or dynamically (when the mount
point is accessed).
Fire up NetInfo and in the top pane navigate to / config. Add new
entries as show below:
This creates a dynamically mounted AFS share. The share is only
mounted when it is in use.
'name' is the hostname and name of the share to mount as seen in the
Finder's 'Connect...' dialogue.
'dir' must be /Network/Servers for dynamic mounts.
'vfstype' (virtual file system type) must always be URL for AFS.
'opts' contains two values:
'net' specifies a dynamic mount
'url==...' specifies the share to mount.
replace 'carcharoth.mayo-family.com' with the IP address or
hostname of the server
replace '/Users-Shared' with the share point as seen in the
Finder's 'Connect...' dialogue
To create a static mount do not add the 'net' value to property 'opts'.
Whereas dynamic mounts always appear under /Network/Servers, static
mounts appear under /Network/any-directory (you must create the
directory 'any-directory' first).
If you are not comfortable using NetInfo, see Thursday's tip.
The mount given above creates a guest login. It is possible to create
a real login by specifying a user name and password. However automount
operates as the root user, so other users will not gain any advantage.
The format for a real login is:
'url==afp://username:password@server/share-point'
Remember that anyone will be able to see the password by looking at
NetInfo.
Enjoy !! :-)
Panther 10.3.4
To discuss this tip in the OSXFAQ Mac OS X Tip-of-the-Day Forum, click here:
http://forums.osxfaq.com/viewforum.php?f=100
E-mail your comments or suggestions to webmaster@osxfaq.com
|