- Challenges of File Sharing
- Different Protocols for Different Clients
- Planning File Services
- Using Apple Filing Protocol
- Configuring Apple File Service
- Monitoring AFP Activity
- Using Windows File Service
- Configuring Windows File Service
- Configuring Access and Starting Windows File Services
- Using NFS Share Point Access
- Configuring NFS
- Using FTP File Service
- Configuring FTP Service
- Network-Mounted Share Points
- Preparing for a Network Home Folder
- Configuring Network Mounts
- Controlling Access to Shared Folders
- Troubleshooting File Services
- What Youve Learned
- References
- Chapter Review
Configuring FTP Service
You use Server Admin to share a folder over FTP. As you’ve done previously with SMB and NFS shares, you’ll create a folder and make it available to others using the FTP protocol.
- With Server Admin on your Mac OS X computer, select your server, then click File Sharing in the toolbar.
- Click Volumes, then click Browse.
- Navigate to the Shared Items in your boot volume.
- Click New Folder and create a folder named FTP Services.
- Select the FTP Services folder, click Share, and click Save.
- With FTP Services selected, click Protocol Options, and confirm that the checkboxes are deselected for sharing this item using AFP and SMB.
- Click the FTP tab and select the checkbox for “Share this item using FTP.”
- Deselect the “Allow FTP guest access” checkbox.
- Click OK to dismiss the Protocol Options pane, then click Save.
Now your shared folder is visible only to FTP clients.
Allow Access for Selected Users
Next, you’ll start the FTP service and allow access to FTP for certain users and groups.
- On your Mac OS X computer, open Server Admin and select your server in the left column.
- Click the Add (+) button and choose Add Service from the pop-up menu. Select FTP and click Save.
- Select the FTP service, then click Settings.
- Click General.
- Choose Any Method from the Authentication pop-up menu.
- Deselect the “Enable anonymous access” checkbox.
- Click Save.
- Click the Start FTP button in the bottom-left corner.
- Select your server (rather than the FTP service) in the left column of Server Admin.
- Click Access in the toolbar.
- Select “For selected services below.”
- Select FTP from the list.
- Select “Allow only users and groups below” and click the Add Group Members (+) button.
- Drag users Student One and Student Two from the Users and Groups window to the list of allowed users.
- Click Save.
Connect to Server via FTP
Finally, you’ll use the client computer to connect via FTP on the server.
- On your Mac OS X computer, switch to the Finder, and choose Go > Connect to Server.
- Type ftp://server17.pretendco.com and click Connect.
- Authenticate as student3 (password: network) and click Connect.
- Because the SACL you just created for the FTP service does not include student3, you will see an error. The authentication may have succeeded, but the authorization to use the FTP service failed, and you should see a message that you entered an invalid user name or password. Click OK.
- Authenticate as student1 (password: network) and click Connect.
A Finder window should appear with the share points that are available via the FTP service.
Note which folders you have access to in the mounted share point.
- Unmount the FTP volume from your client computer: Close the Finder window that just appeared, then click eject next to your server in the sidebar.
Although it can be useful to restrict connections per service group user, it will interfere with future exercises.
- On your Mac OS X computer, open Server Admin and authenticate if necessary.
- Select your server.
- Click the Access tab, and do the following:
- Select the “Allow all users and groups” option.
- Select the “For all services” option.
- Click Save.