Last updated 2016/03/22
Return to the Suffield Academy Network Documentation Homepage
A printable version of this document is also available.
Suffield provides networked file server space for all of its users. This gives people a place to back up their important files, share files with others, and access their files from machines that aren't their own.
Additionally, users may create web pages in their file server accounts, which are automatically hosted on our internal webserver.
Finally, school-owned desktop and lab computers directly attach to file server storage when a user logs in. This way, a user's files "follow" them around from machine to machine, making access and backup simple.
This document describes how to set up a Mac OS X Server machine as a central file server. We cover configuration for Macintosh and Windows clients, as well as networked home directories for Macintosh and Windows. Finally, we'll discuss exporting files via NFS.
Begin with a fresh install of Mac OS X Server 10.4. Note that you'll most likely want an unlimited client license, or you'll be severly limited in the number of connections your server will support.
Perform a standard installation. When running the Server Setup Assistant, you should be careful when choosing the Computer Name. This is the name that will be shown to users when they connect to the fileserver, so it should be something meaningful that they will understand.
When asked which services to start automatically, you should choose Apple File Sharing. Additionally, if you wish to let Windows users connect to the server, you should enable Windows File Sharing.
Once the base install is complete, run any pending software updates.
At this time, you should connect any external drives you plan to use for shared data. External disks, RAID arrays, or other media should all be connected, named, partitioned, and ready to use before continuing.
If your network has one or more Open Directory servers, and you plan to authenticate file sharing logons using these servers, you'll need to set up directory authentication:
/Applications/Utilities
.
Quit the Directory Access application when you are done.
If you wish to gain the benefits of single-signon using Kerberos, you must first join your server to the OD server's Kerberos domain.
cn=myserver,cn=computers,dc=suffieldacademy,dc=org
". Use the
name part of this record (e.g., "myserver").
AFP sharepoints are the native method for clients running Mac OS X. If you wish to share files to Macintosh clients, you should enable AFP sharepoints.
In Server Admin, click on the AFP service entry.
Under the Access tab, select the Enable Guest access checkbox.
Under the Logging tab, enable any logs you wish to keep on the server.
Save your changes by clicking the Save button at the bottom of the screen.
Open Workgroup Manager and click on the Sharing icon at the top of the window.
From this point, you may add, modify, and delete share points on the server.
To add (or modify) a sharepoint:
CIFS sharepoints are most frequently used by computers running Windows, though UNIX, Mac OS X, and other clients are also cable of speaking the protocol.
CIFS shares may be enabled simultaneously with an AFP share, or it may exist on its own (e.g., for Windows profile directories, which are not needed on the Mac).
In Server Admin, click on the Windows service entry.
Under the General tab, set the Role of the server to Domain Member.
Enter the name and description of the machine, and set the domain to
the proper value for your network (e.g., SUFFIELDACADEMY
).
Under the Access tab, decide if you wish to allow guests or not.
Under the Advanced tab, deselect the Workgroup Master Browser and Domain Master Browser checkboxes (we assume you have set up a valid Primary Domain Controller on another machine; if this is your PDC, leave the boxes checked).
If you're using WINS on your network, enter the IP address of your WINS server to register your computer's name.
You will probably want to enable Virtual Share Points, which allows users to connect directly to their home folder without needing the intervening path information.
Click Save. You will be prompted to enter a Open Directory Administrator password, which adds your computer to the domain.
Open Workgroup Manager and click on the Sharing icon at the top of the window.
Select a share point from the pane on the left, and click the Protocols tab on the right.
Choose Windows from the drop-down menu to edit the settings related to CIFS shares.
If you wish to share this folder to CIFS clients, select the Share this item using SMB checkbox. You may also select the Allow SMB guest access checkbox if you wish to allow guests.
Click Save to save your changes, and your share point should now be available to Windows clients.
If you plan to let users log in to the file server directly (e.g., via SSH), you'll find that the network home directories do not work, because they map back to the server.
To override this, we must tell the server to ignore the home directory attribute from the OD server, and replace it with a custom local value instead:
/Applications/Utilities
.
homeDirectory
.
#
) and contains the local path to your users' home
directories. You may use the macro "$uid$
" to add the user's
login name. For example:
#/Volumes/BigRaid/Users/$uid$If a user named
jbogus
logged in, the home directory would be set
to /Volumes/BigRaid/Users/jbogus
.
You can check your settings by logging in to the terminal and typing the following:
lookupd -d
This begins an interactive version of lookupd
, which merges
directory information on Mac OS X. Type the following command:
userWithName: jbogus
(Substitute a real username for jbogus
.)
You should see a list of attributes for this user. Under the home
attribute, you should see your new mapped value, rather than the
network-mounted default.
NFS is the traditional file sharing mechanism for UNIX clients. It allows a machine to mount an entire directory and make it available to all of its clients, with proper permissions and ownership settings.
NFS does have its warts, however, including a bad security track record. Therefore, we only recommend enabling NFS for read-only, non-root exports. That minimizes exposure to security flaws that could corrupt your data.
NFS is automatically enabled when share points are available for other machines to use. Thus, you do not need to explicitly start any services in Server Admin.
You may change a few parameters for the NFS daemon itself, but you should not need to do this unless you know what you are doing.
Open Workgroup Manager and click on the Sharing icon at the top of the window.
Select a share point from the pane on the left, and click the Protocols tab on the right.
Choose NFS from the drop-down menu to edit the settings related to NFS shares.
Because NFS is not a very secure protocol, we recommend restricting the export as much as possible.
If possible, use the Client or Subnet designation for the share point, to restrict which machines can connect to the share. Try to restrict it as much as possible, including only the hosts you trust to access the share.
If possible, export the share read-only to prevent clients from making changes.
If you need to preserve ownership of files for clients, deselect the Map all users to nobody checkbox. If you simply need to export all the files (and ignore ownership), leave this box selected.
You should always leave the Map root user to nobody box selected, unless you know what you are doing.