Sunday, September 25, 2011

OS X File Sharing — The Basics - Connecting to Another Computer

Connecting to another computer in OS X is a very simple process, and there are several ways to do it.  I'm going to show you a way that will always work, if you know the address of the computer on your network.  If you don't, that's no big deal, as we can work around that by using an auto-discover feature in OS X.  It's important to note, however, that this auto-discover feature has not been working well in the early versions of OS X Lion (10.7.0 and 10.7.1 specifically).


The procedure goes like this:
•  Make sure you are in the Finder
•  Find the other computer
•  Connect to it


Connecting to another computer is going to be achieved by using a program called the Finder.  The Finder is the filesystem manager for OS X, similar to Window Explorer on a PC.  The Finder will most likely be the first program you will see when you start your Mac.  If there is any doubt as to what program you are currently using, look up in the upper left-hand side of your screen to see what's running.


Once in the Finder, type Command-K, or go to the "Go" Menu at the top of the screen, and select "Connect to Server".


Next, you will see the following screen:

You can add servers you frequently connect to to the Favorite Servers list by entering a valid address into the text field (highlighted above) and clicking the plus sign to the right of the address.
See the highlighted address above?  If you know the address of the server you are trying to connect to, enter the address there and click Connect.  If you don't know the address, but are sure that your computer is connected to the same network you are currently connected to, and that file sharing is enabled on that computer, click the Browse button at the bottom of the above screen.  You should see something similar to this:

"Network" is highlighted, and to the right of that are computers and devices that are on the same network.


If you used the Browse method, double-click on the computer or device you want to connect to.  If you entered an address into the Connect To Server window, click Connect.  Either way, if all is well, you will see the following screen:


Enter your username and password for the computer you want to connect to (which is not necessarily the username and password for the computer you are trying to connect from) and click Connect.  If everything has gone according to plan, you should see the connected device somewhere in your Finder.  This will depend on how you have chosen to see connected devices.

You now know how to connect to just about any computer from the Finder within OS X.  








OS X File Sharing — The Basics - Enabling File Sharing

One of the great things about computers these days is that it's so easy to share things among them.  Text documents, music files, photos... anything that lives on your computer can be moved to another device.  Whereas this used to be a semi-complicated procedure for the novice, it's now as easy as finding a checkbox and clicking it.  Mostly.


The procedure goes like this:
•  Enable File Sharing
•  Tell OS X who can file share with your computer
•  Tell OS X what kind of permissions those people have


The important thing to remember when file sharing with OS X (or any computer really), is that there are two distinct devices: the server and the client.  If you are connecting to a computer to take files off of it, you are the client.  If someone else is connecting to your computer, your computer is acting as a server.  Makes sense.


However, if you connect to a computer through file sharing, you can not only take files from that computer, but you can also put files onto that computer.  As long as you have the proper credentials, you can move files, delete files and copy files from the computer you connect to.


So how do you do it?


Well, let's start by setting your computer up to share files, so that you can gain a better understanding of what's involved in the process.


First, head over to the System Preferences, and click the Sharing preference, as seen here:






Once opened, you will see the following screen:


On the left side of this screen, you will see different "sharing" services that you can turn on and off, simply by checking the box next to it.  In the above picture, File Sharing is highlighted and enabled.  


You will see that over to the right of the screen, there is a list of users.  This panel is where you select the people that are allowed to connect to your computer, and what they are allowed to do.


You can allow anyone to connect to your computer, a group of people or individual users, and assign each of them different permissions.  They will be able to either:


1)  Read Only - not only see things on your computer, but also copy things from it.  Others will not be able to modify files on your computer, however.  This is the safest option if you want to share files with others, but you want to make sure that they don't change things by mistake.  If you are at work, your administrator is probably giving you "read-only access" so that you can't mess anything up.
2)  Write Only - copy things to your computer, AND modify items/files/etc.  Other users can leave files for you, but they won't be able to see anything on your computer.  This is handy if you want to provide a simple folder for others to drop files into.  They won't be able to access any other parts of your system.  A write-only folder is often times called a dropbox.
3)  Read & Write - copy things to and from your computer, as well as see files and modify them.  This should be used only if you completely trust the person on the other end, as they will have full access to whatever it is you are giving them permission to (in this case, your whole computer).


So, as you can see, there are many different options to choose from.  For now, we are only going to concern ourselves with one user (you) and one kind of permission (Read & Write).  The beauty of doing things this way is that you are only trusting yourself with the files on your computer.  If you want to add more people in the future, you can just follow these instructions, substituting other accounts for yours.


Let's enable file sharing for your User Account.  To do so, make sure File Sharing is enabled, and then click the "+" sign underneath the list of users.  You will be presented with a new drop-down menu:


As you can see, my user is greyed-out because my user account is already setup for file sharing.


Click on your user account (probably your name), click the Select button, and your user account will be added to the list of accepted users on the right.


Next, it's time to set what permissions your account can have.  Next to your name (which has now been added to the right side pane), click the black arrows.  You will see the following:


Select "Read & Write", and you're done!


Once you've set this up once, you don't need to do it again.  You can enable and disable File Sharing by clicking the checkbox, and OS X will remember who has access to your system.  If you need to remove a user from File Sharing, simply highlight their name on the right, and click the "-" symbol below it.


You will now be able to see your computer on a network, and you can connect to this computer by using your User Account name and password.  Once connected, you will be able to see all of the files on your computer, as well as copy files to your computer and modify things.