WEBVTT

00:06.150 --> 00:11.490
In this lesson, we're going to talk about sharing printers and file shares out on the network with

00:11.490 --> 00:16.950
your Mac server, so you actually do this without having to even have 10 server on your machine.

00:16.950 --> 00:23.280
So this will work on any client, Mac, but it's especially suited to an Austin server, because what

00:23.280 --> 00:29.790
we've done up to this point, we've created a directory structure, we've got users, we've got groups,

00:30.390 --> 00:31.980
we have a static IP address.

00:32.760 --> 00:37.740
So all those things are in place to make this a much more stable environment for sharing our data.

00:38.340 --> 00:43.770
Even if I was doing this on a client machine, it would be probably for the best if it was a static

00:43.770 --> 00:46.350
IP address, just best practices.

00:46.890 --> 00:48.860
But anyway, so we'll go ahead and get started here.

00:49.230 --> 00:55.410
The first thing I'm going to do is I connected some attach storage here and I started creating some

00:55.410 --> 01:00.930
folders here and I'm going to create a folder that everyone in the accounting group is going to be able

01:00.930 --> 01:01.640
to access.

01:02.040 --> 01:03.300
So I'm just going to go in here.

01:03.300 --> 01:08.400
I'm going to hit new folder and I'm just going to call this accounting.

01:09.240 --> 01:11.970
This will be the accounting group folder group Drive.

01:12.450 --> 01:15.660
And that way everyone who works in the accounting group can access the data.

01:15.660 --> 01:19.320
Anyone who's not in the accounting group is not going to have access.

01:19.320 --> 01:25.170
We don't really want just anyone to be able to get in and take a look at all the invoices and and other

01:25.170 --> 01:29.280
sensitive information that the accounting group may have access to unless you they work in the accounting

01:29.280 --> 01:29.690
department.

01:30.480 --> 01:33.450
So once we've done that, I'm just going to go ahead and close that out.

01:33.450 --> 01:36.300
I'm going to go up here to system preferences and I'm going to go to sharing.

01:37.500 --> 01:44.760
So you've probably remember this from an earlier lesson, but this is the sharing system preference,

01:45.240 --> 01:47.400
and right now file sharing is turned off.

01:47.430 --> 01:49.410
I'm going to go ahead and check the box, turn it on.

01:50.670 --> 01:56.800
And you can see here it has this computer administrators and volumes and here's the IP address, that

01:56.800 --> 02:03.120
specific IP address that we had set, and we're going to go in here and just hit the plus next to the

02:03.120 --> 02:04.020
shared folder.

02:05.830 --> 02:11.560
And I'm going to browse to the folder I created called Accounting, and we're going to go ahead and

02:11.560 --> 02:16.880
add that now when I'm done that you can see I've got a few things that are just on here by default.

02:17.230 --> 02:21.100
So these are all local groups and local users.

02:21.430 --> 02:24.810
I've got the dummy user, which is a user.

02:24.820 --> 02:25.990
I'm logged in as currently.

02:26.320 --> 02:31.990
I'm a member of the staff group like anyone else who logs into the server directly and the everyone

02:31.990 --> 02:34.870
group, which is everyone who logs into the server directly.

02:34.870 --> 02:41.980
So I don't really need to worry about these permissions specifically because I'm really sharing this

02:41.980 --> 02:43.470
out on the network through open directory.

02:43.480 --> 02:53.290
So what I actually need to add is add my users or add my groups to the from the open directory group

02:53.290 --> 02:54.260
to this.

02:54.260 --> 02:55.780
So I'm looking for those network accounts.

02:55.780 --> 02:56.860
So I'm just going to hit plus.

02:57.190 --> 03:02.800
And you can see when I do that starts with local, the local groups here and local users.

03:03.250 --> 03:07.130
Then I have my what's new, which would be my network users and network groups.

03:07.570 --> 03:13.210
So if you're doing this on a Mac client that isn't part of open directory, it isn't bound to a directory.

03:13.210 --> 03:15.790
All you're going to see here is users and groups and contacts.

03:16.180 --> 03:21.790
But because we're we're on this server, we're running our our network open directory, I have network

03:21.790 --> 03:23.020
users and network groups.

03:23.680 --> 03:28.390
So as I mentioned in the past, the best thing to do is probably assign this to a group rather than

03:28.390 --> 03:32.320
trying to assign this to specific users, unless there's a reason for that.

03:32.320 --> 03:34.720
And you can see our four network users are listed here.

03:36.140 --> 03:40.090
We're going to go to network groups and I mentioned this for the accounting department.

03:40.090 --> 03:42.430
So we only want the accounting department to have access.

03:42.920 --> 03:44.290
So hit select to that.

03:44.770 --> 03:49.150
And now I've got the accounting department as a group and I can choose what I want them to be able to

03:49.150 --> 03:49.540
do.

03:49.750 --> 03:52.570
So I actually want them to have read and write access.

03:52.720 --> 03:56.710
You can see read only, write only and read and write are my options.

03:57.100 --> 03:58.540
So I'm going to choose, read and write.

03:59.020 --> 04:03.250
And now what I've done is I've created a share that the accounting department can read and write.

04:04.180 --> 04:10.150
And I can still access this folder on my server, so these local accounts, I'm fine to leave those

04:10.150 --> 04:13.150
in place and you can see, in fact, if I go in.

04:14.820 --> 04:20.670
Browse to this, you'll see I can still access it, you can see here now it says it's a shared folder,

04:20.670 --> 04:25.710
so it's letting me know, hey, this is shared out on the network, but I can create a folder in here.

04:26.160 --> 04:28.700
It's a test and all that kind of stuff.

04:28.710 --> 04:33.810
That folder would then be available out on the network in that account and share people would map it

04:33.810 --> 04:39.120
just by putting this in one nine two one six eight one nine counting.

04:39.870 --> 04:41.590
So that's how you would access that.

04:41.640 --> 04:46.320
Or you can just punch that in on a Mac client, little impromptu to choose one of the shares that you

04:46.320 --> 04:48.900
have access to once you've authenticated.

04:49.530 --> 04:58.770
But the reason I wanted to show this was if I go in here and change this to something like, let's say

04:58.770 --> 05:03.180
write only and let me refresh the screen here.

05:06.580 --> 05:08.500
You'll see something's changed.

05:08.530 --> 05:17.080
I can't see inside this anymore, logged in locally and my icon of change to this right, only Dropbox's

05:17.080 --> 05:18.090
kind of icon.

05:18.550 --> 05:24.250
And that's because I modified the permissions for the local account and the local group.

05:24.490 --> 05:31.540
So I can even say I'll go back to read and write was what I had for and I can change everyone to access.

05:31.810 --> 05:33.490
And now when I go here, browse.

05:36.110 --> 05:41.150
You can see accounting now, I can't get into it at all, and I've got the little red dash saying I

05:41.150 --> 05:42.040
don't have access.

05:42.380 --> 05:50.060
So if you need access, if users are logging in directly to your server, need access to these folders,

05:50.060 --> 05:55.310
they should have those those permissions set as necessary here.

05:56.390 --> 06:01.730
So you can see you've got your local accounts, you've got your network accounts, and they're kind

06:01.730 --> 06:02.320
of mixed together.

06:02.330 --> 06:03.650
So that can create some confusion.

06:03.660 --> 06:05.480
So that's a reason why I highlight that here.

06:05.780 --> 06:10.190
Is that really when you're talking about shares, you really want to be dealing with your network groups,

06:10.220 --> 06:14.420
network users and kind of ignore and just let these stay as default.

06:14.990 --> 06:19.580
If you've got a secure server where maybe you're the only administrator that's logging in and you want

06:19.580 --> 06:21.740
access to all the folders anyways.

06:23.890 --> 06:25.780
All right, next, let's talk about printer sharing.

06:26.640 --> 06:31.260
So I'm going to go to the printers and scanners, some preference, and I'm going to show you that I

06:31.260 --> 06:37.260
actually have a printer set up here and it's a network printer and it is called the admin printer,

06:37.260 --> 06:38.670
and it's in our accounting office.

06:39.360 --> 06:42.150
And I want to share this printer out so I can do a couple of things.

06:42.150 --> 06:46.830
I can check the boxes to share this printer on the network and I can open up sharing preferences here.

06:47.790 --> 06:52.320
But I'm just going to go directly to the sharing preferences and we go to printer sharing.

06:52.920 --> 06:57.750
And I'm going to hit and I've got a button here to take me back to prison scanners if I want to add

06:57.750 --> 06:58.260
printers.

06:58.770 --> 07:03.780
But I'm just going to go ahead and check this box and I'll sharing is on.

07:04.170 --> 07:09.630
I've got everyone set to print and I'm going to hit plus and I'm going to again look at those network

07:09.630 --> 07:12.720
groups and I'm going to change this to the accounting department.

07:13.400 --> 07:16.810
I'm going to add that and then the access to the program.

07:16.880 --> 07:19.010
Now it's shared to those users as well.

07:19.380 --> 07:22.410
And I'm going to say can print as well.

07:22.470 --> 07:26.320
So I want to limit access to those things I can.

07:26.340 --> 07:31.470
So right now, this is available for everyone to print to and like I did before, I go in here and change

07:31.470 --> 07:32.670
it to accounting department.

07:33.000 --> 07:37.470
And now everyone has no access, but the accounting department has the ability to print.

07:38.310 --> 07:42.150
So that's how you can share and manage the permissions of your partners out on your network.

07:42.630 --> 07:48.510
I typically, unless there's a real secure need for it, I tend to just keep the default of everyone

07:48.510 --> 07:48.950
can print.

07:48.970 --> 07:51.630
Each of my partners that I have shared makes that easier.

07:51.630 --> 07:52.800
And it provides a backup.

07:53.190 --> 07:58.980
If a printer in one area, let's say, is jammed or is out of service for some reason, then there's

07:59.220 --> 08:02.210
an easy way to connect all the users to a backup for.
