[[fester112:shares_basic]]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
fester112:shares_basic [2017/06/19 11:18] – external edit A User Not Logged infester112:shares_basic [2019/06/20 02:13] (current) – Remove extraneous images admin
Line 23: Line 23:
 ==== User Creation ==== ==== User Creation ====
  
-Go to the “Accounts” page (1) and click the “Add Group” button (2).+Click "Accounts" in the left column, then "Groups".
  
-{{:fester:ae91f6108caaa0c1ca81a4e893895687.png}}+{{:fester112:pasted:20190527-121129.png}}
  
-A new smaller window will pop up. Here we can create a new Group.+Click the "Add" button.  A new smaller window will pop up, where we can create a new Group.
  
-Leave the “Group ID:” at its default value of **1001** (1).+{{:fester112:pasted:20190527-121356.png}}
  
-Now type in a name for the new group in the “Group Name:” text box (2) (because this is a starter share from which you can experiment, Fester used **TestGroup**).+Leave the “Group ID:” at its default value of **1001**.
  
-Do not tick the “Permit Sudo:” or “Allow repeated GIDs:” tick boxes (3).+Now type in a name for the new group in the “Name” text box (because this is a starter share from which you can experiment, Fester used **TestGroup**).
  
-Now click the “OK” button (4).+Do not tick the “Permit Sudo:” or “Allow repeated GIDs:” tick boxes.
  
-{{:fester:7a35a0c443c2e010949eab271557be06.png}}+Now click the “Save” button.
  
 If all goes well an entry should appear in the Account → Groups page. You should see something like this. If all goes well an entry should appear in the Account → Groups page. You should see something like this.
  
-{{:fester:b4ebed7afd894beb86d412d847a9d321.png}}+{{:fester112:pasted:20190527-121439.png}}
  
-Now go to the “Accounts” page (1) and click the Users” button (2).+Now click "Accounts" in the left column, then "Users".
  
-{{:fester:c11b1b19753d68c2b0cde4ad20af2c0d.png}}+{{:fester112:pasted:20190527-121531.png}}
  
-A new window will pop up. Here we can create a new User.+Click the "Add" button.  A new window will pop up, where we can create a new User.
  
-Leave the “User ID:” at its default value of **1001** (1).+{{:fester112:pasted:20190527-121744.png}}
  
-Now type in a name for the new user in the “Username:” text box (2) (because this is a starter share from which you can experiment, Fester used **TestUser**).+Leave the “User ID:” at its default value of **1001**.
  
-Untick the “Create new primary group for the user:” tick box (3).+Now type in name for the new user in the “Username” text box (because this is a starter share from which you can experiment, Fester used **TestUser**).
  
-The “Primary Group:” drop down selection box (4) should now become active. The group we created earlier (i.e. TestGroup) should be available for selection.+Untick the New Primary Group” tick box.
  
-Leave the Create Home Directory In:” text box at the default **/nonexistent** (5).+The Primary Group” drop down selection box should now become active. The group we created earlier (i.e. TestGroupshould be available for selection.
  
-Leave “Shell:” at its default setting (6).+Leave the Home Directory” text box at the default **/nonexistent**.
  
-Type in a name for the new user (7) (Fester chose **Test User**).+Leave “Shell” at its default setting.
  
-Create password in the “Password:” text box and confirm it by retyping it in the “Password Confirmation:” text box (8) (because this is a starter share to experiment with Fester just used **test**. Make sure you use a stronger and less predictable password when you create your real/final share/s).+Type in name for the new user (Fester chose **Test User**).
  
-Now scroll down.+Create a password in the “Password” text box and confirm it by retyping it in the “Confirm Password” text box (because this is a starter share to experiment with Fester just used **12345**Make sure you use a stronger and less predictable password unless you want Planet Spaceball to steal all your air.)
  
-{{:fester:842950a902ca5ec3e4a7133d142e209c.png}}+{{:fester112:pasted:20190527-121840.png}}
  
 __Do not tick the “Disable password login:” you will lock yourself out of the share__. __Do not tick the “Disable password login:” you will lock yourself out of the share__.
  
-Leave the “Lock user:” and “Permit Sudo:” at their default settings of unticked (9).+Leave the “Lock user:” and “Permit Sudo:” at their default settings of unticked.
  
-Fester will be accessing this account from a windows machine so I tick the “Microsoft Account:” tick box (10).+Fester will be accessing this account from a windows machine so I tick the “Microsoft Account:” tick box.
  
-Now click the “OK” button (11). +Now click the “Save” button.
- +
-{{:fester:8ab0ad58bb5aa9f8ea2304d920d2422d.png}}+
  
 ==== Dataset Creation ==== ==== Dataset Creation ====
Line 83: Line 81:
 Now we need to create the dataset. Now we need to create the dataset.
  
-Go to the “Storage” page. +Click "Storage" in the left column, then "Pools".
- +
-{{:fester:a498b5b6cf563286a07cf54dd573f267.png}} +
- +
-Select “Tank1” or whatever you called the volume (1) by clicking on it (it should turn blue when selected).+
  
-A series of buttons should appear on the bottom of the screen.+{{:fester112:pasted:20190527-122135.png}}
  
-From these buttons click on the one that creates a dataset (2).+Click the three vertical dots to the right of your pool, and choose "Add Dataset" from the pop-up menu.
  
-{{:fester:f92e6f8a87ed14753f4c160a0b109a76.png}}+{{:fester112:pasted:20190527-122247.png}}
  
 A new smaller window will pop up for creating the dataset. A new smaller window will pop up for creating the dataset.
  
-In the “Dataset Name:” text box (1) give the share a name (because this is a starter share from which you can experiment, Fester used **TestShare**).+{{:fester112:pasted:20190527-122455.png}}
  
-Leave the “Compression level:” drop down selection box (2set to lz4.+In the “Name” text box give the share a name (because this is a starter share from which you can experiment, Fester used **TestShare**).
  
-Set the “Share type:” to whatever suits the type of clients on your network (Fester has mainly Windows machines so I set this to **Windows**).+Leave the “Compression level:” drop down selection box set to **Inherit (lz4)**.
  
-Leave the “Case Sensitivity:” drop down selection box and “Enable atime:” at their default settings as shown (4).+Set the “Share Type” to whatever suits the type of clients on your network (Fester has mainly Windows machines so I set this to **Windows**).
  
-ZFS Deduplication:” should be set to **off** in the drop down selection box (5) unless you understand this and you have plenty of memory.+Leave the Case Sensitivity” drop down selection box and “Enable Atime” at their default settings as shown.
  
-Now click the “Add Dataset” button (6).+Now click the “Save” button.
  
-{{:fester:3c5488f54c32483e3941af22227f0ac0.png}}+The dataset will now be created and you should see something like this.  If you don't see your newly-created dataset, click the **>** next to your pool name.
  
-The dataset will now be created and you should see something like this.+{{:fester112:pasted:20190527-122555.png}}
  
-{{:fester:16635150d64c83f279b3200ab48c383f.png}}+Click the three vertical dots to the right of your dataset, and select "Edit Permissions" from the pop-up menu.
  
-Remain on this screen and select the newly created dataset (1) if it is not selected already (in Fester’s case this was TestShare). +{{:fester112:pasted:20190527-122715.png}}
- +
-Now click on the change permissions button (2). +
- +
-{{:fester:f198d3f67752659318b0e283df9ef262.png}}+
  
 A new window will pop up for changing the permissions of the new dataset. A new window will pop up for changing the permissions of the new dataset.
  
-Leave the “Apply Owner (user):” tick box (1) at its default setting (with a tick).+{{:fester112:pasted:20190527-123000.png}}
  
-In the “Owner (user):” drop down selection box (2) select the new user you created moment ago (in Fester’s case this was TestUser).+Leave the “Apply User” tick box at its default setting (with tick).
  
-Leave the “Apply Owner (group):” tick box (3) at its default setting (with a tick).+In the “User” drop down selection box select the new user you created a moment ago (in Fester’s case this was TestUser).
  
-In the “Owner (group):” drop down selection box (4) select the new group you created moment ago (in Fester’s case this was TestGroup).+Leave the “Apply Group” tick box at its default setting (with tick).
  
-Leave the “Apply Mode:” tick box (5) at its default setting (with tick).+In the “Group” drop down selection box select the new group you created moment ago (in Fester’s case this was TestGroup).
  
-If you have chosen Windows” as the Permission Type then the “Mode:” tick boxes (6) will be greyed out so you can not alter them. FreeNAS will prevent you from making alterations here and is correct to do so. This is because if you did you could break the share.+Set the ACL Type” radio button to match the clients on your network (Fester has mostly Windows machines so I set this to **Windows**).
  
-Set the “Permission Type:” radio button (7) to match the clients on your network (Fester has mostly Windows machines so I set this to **Windows**).+Put a tick in the “Apply permissions recursively” tick box.  When you do this, you'll see a pop-up warning box.
  
-Put a tick in the “Set permission recursively:” tick box (8).+{{:fester112:pasted:20190527-123036.png}}
  
-Now click the “Change” button (9).+Put a tick in "Confirm", then click the "Continue" button.
  
-{{:fester:5ad5f0ce29f6b24d18ed2811328f89a7.png}}+Now click the “Save” button.
  
 ==== Share Creation ==== ==== Share Creation ====
  
-Now we need to create a CIFS share. On a network that utilises predominately Windows clients this is a good choice.+Now we need to create a SMB share. On a network that utilises predominately Windows or macOS clients this is a good choice.
  
-Go to the “Sharing” page.+Click "Sharing" in the left column, then "Windows (SMB) Shares"
  
-{{:fester:3aaa0b6fe2d6bfde321c6c5a79c2d284.png}}+{{:fester112:pasted:20190527-123313.png}}
  
-Now click the “Windows (CIFS)” button (1) and then click the “Add Windows (CIFS) Share” button (2).+Click the "Addbutton.
  
-{{:fester:9993271b972a8e10c4b9b70bef7a8ba5.png}}+{{:fester112:pasted:20190527-123436.png}}
  
 A new smaller window will pop up. A new smaller window will pop up.
  
-In the “Path:” section click the “Browse” button.+In the “Path” section, you can type in the path (it's ''/mnt/tank/TestShare'' in this example), or click the folder icon on the left to browse.
  
-{{:fester:a7da52b7df403b489d0edcee0b222e55.png}}+{{:fester112:pasted:20190527-123601.png}}
  
-The window should now expand a little and allow you to navigate to the newly created dataset (1).+The “Path” text box should now display the chosen dataset.
  
-When you have it selected click the “Close” button (2).+Do not tick the “Use as home share:” tick box at the moment.
  
-{{:fester:b0f78f8076efa5d2a9970f4e0b4dd125.png}}+Give the share a name in the “Name” text box.
  
-The Path:” text box (1) should now display the chosen dataset.+Do not tick the Allow Guest Access:” tick box.
  
-Do not tick the “Use as home share:” tick box (2) at the moment.+Now click the “Save” button.
  
-Give the share a name in the “Name:” text box (3).+{{:fester112:pasted:20190527-124042.png}}
  
-Put a tick in the “Apply Default Permissions:” tick box (4) if a tick is not present.+You will now be asked if you wish to enable the SMB share service.  Click the “Cancel” button.
  
-Do not tick the “Allow Guest Access:” tick box (5).+{{:fester112:pasted:20190527-124131.png}}
  
-Now click the “OK” button (6).+You should now see your newly-created share.
  
-{{:fester:2d42d97391a0c05c9ee7586158d5421c.png}}+{{:fester112:pasted:20190527-124204.png}}
  
-If all goes well you will see the newly created CIFS share entry (1).+==== SMB Configuration ====
  
-You will now be asked if you wish to enable the CIFS share service.+Now click "Services" in the left column, and scroll down to find SMB.
  
-Click the “No” button (2).+{{:fester112:pasted:20190527-124302.png}}
  
-{{:fester:00642aaa11a2955b12aff69c4eecdc93.png}}+Click on the little pencil next to the “SMB” service.
  
-==== CIFS/SMB Configuration ====+A new window will pop up.
  
-Now go to the “Services” page. +{{:fester112:pasted:20190527-124551.png}}
- +
-{{:fester:91f9c957b109e4f4bd41d2f8a69e1a6c.png}} +
- +
-Click on the little spanner next to the “CIFS” service (1). +
- +
-A new window will pop up.+
  
-The NetBIOS name will already be present in the “NetBIOS Name:” text box (2).+The NetBIOS name will already be present in the “NetBIOS Name” text box.
  
 In the “Workgroup” text box (3) type in the name of the workgroup you want to use on the client machines (Fester used **T ESTWORKGROUP** because it is an experimental starter share). If you don’t know your Workgroup then skip to the relevant section on how to do this. In the “Workgroup” text box (3) type in the name of the workgroup you want to use on the client machines (Fester used **T ESTWORKGROUP** because it is an experimental starter share). If you don’t know your Workgroup then skip to the relevant section on how to do this.
  
-Type in a good name for the CIFS share in the “Description:” text box (4).+Type in a good name for the SMB share in the “Description” text box.
  
-Do not alter the default values of the “DOS charset:”, the “Unix charset:” and the “Log level:” (5).+Do not alter the default values of the “DOS charset”, the “Unix charset” and the “Log level:”.
  
-Leave the “Use syslog only:” (6) at its default (no tick).+Leave the “Use syslog only” at its default (no tick).
  
-Make sure the “Local Master:” tick box (7) is ticked.+Make sure the “Local Master” tick box is ticked.
  
-Leave “Domain logons:” (8) unticked.+Leave “Domain logons” unticked.
  
-Leave “Time Server for Domain:” (9) ticked.+Leave “Time Server for Domain” ticked.
  
-Leave “Guest account:” (10) at **nobody**.+Leave “Guest account”  at **nobody**.
  
-{{:fester:2a2d2d7d286a4cacbab325269bd5dba1.png}}+{{:fester112:pasted:20190527-124619.png}}
  
-Do not put anything in the “File mask:” and “Directory mask:” text boxes (11) unless you really understand UNIX permissions (Fester can’t help you here).+Do not put anything in the “File mask” and “Directory mask” text boxes unless you really understand UNIX permissions (Fester can’t help you here).
  
-Do not tick the “Allow Empty Password:” tick box (12) as this weakens the security of the share.+Do not tick the “Allow Empty Password” tick box as this weakens the security of the share.
  
-Leave the “Unix Extensions:” and “Zeroconf share discovery:” tick boxes (13) as they are.+Leave the “Unix Extensions” and “Zeroconf share discovery” tick boxes as they are.
  
-Untick the “Hostnames lookups:” tick box (14) otherwise you will keep getting a name mismatch error.+Untick the “Hostnames lookups:” tick box otherwise you will keep getting a name mismatch error.
  
-Set the “Server maximum protocol:” (15to SMB2.+Leave the “Allow execute always” tick box in its default setting (with a tick).
  
-Leave the “Allow execute always:” tick box (16) in its default setting (with a tick).+{{:fester112:pasted:20190527-124728.png}}
  
-{{:fester:489723f6679124dfba84823be1ab326f.png}}+Fester has no idea what the “Obey pam restrictions:” setting actually does. I just leave it ticked, but I have no idea how it should be set.
  
-Fester has no idea what the “Obey pam restrictions:” setting (17) actually does. I just leave it ticked, but I have no idea how it should be set.+Don’t tick any of the IP address text boxes in the “Bind IP Addresses” section.
  
-Don’t tick any of the IP address text boxes (18) in the Bind IP Addresses:” section.+The Idmap Range Low:” and “Idmap Range High” settings Fester does not touch as I don’t know what they do.
  
-The Idmap Range Low:” and “Idmap Range High:” settings (19) Fester does not touch as I don’t know what they do.+Now click on the Save” button.
  
-Now click on the “OK” button (20). +__Do not turn on the SMB share service yet__. We first need to check if the Workgroup on the Windows client is set correctly.
- +
-{{:fester:a109970aacd81e20d3a93866f3a9b3e9.png}} +
- +
-__Do not turn on the CIFS share service yet__. We first need to check if the Workgroup on the Windows client is set correctly.+
 ==== Windows Client Configuration ==== ==== Windows Client Configuration ====
  
Line 254: Line 234:
 {{:fester:ed861c178031eea4b90cdaac607cb5fd.png}} {{:fester:ed861c178031eea4b90cdaac607cb5fd.png}}
  
-In the “System” page we can see the Workgroup is set to **TWERKGROUP** (1). This must be changed to match the Workgroup name you created in the CIFS settings a moment ago (in Fester’s case this was TESTWORKGROUP).+In the “System” page we can see the Workgroup is set to **TWERKGROUP** (1). This must be changed to match the Workgroup name you created in the SMB settings a moment ago (in Fester’s case this was TESTWORKGROUP).
  
 Click on “Change settings” blue text (2) to access the screen where we can change the Workgroup name. Click on “Change settings” blue text (2) to access the screen where we can change the Workgroup name.
Line 270: Line 250:
 Another window will now pop up. Another window will now pop up.
  
-Change the text in the Workgroup text box (1) to the one you created in the CIFS settings page (in Fester’s case this was **TESTWORKGROUP**) and click the “OK” button (2).+Change the text in the Workgroup text box (1) to the one you created in the SMB settings page (in Fester’s case this was **TESTWORKGROUP**) and click the “OK” button (2).
  
 {{:fester:15d826e4f7390cf28c497a89ad06ffde.png}} {{:fester:15d826e4f7390cf28c497a89ad06ffde.png}}
Line 304: Line 284:
 The client computer will now reboot, when it does log back into the FreeNAS GUI. The client computer will now reboot, when it does log back into the FreeNAS GUI.
  
-==== Enable CIFS/SMB Service ==== +==== Enable SMB Service ====
- +
-Now go to the "Services" page. +
- +
-{{:fester:91f9c957b109e4f4bd41d2f8a69e1a6c.png}}+
  
-Turn on the CIFS share service.+Now click "Services" in the left column, and turn on the SMB share service.
  
-{{:fester:9c896640f45eb78c4ba4c574a172a198.png}}+{{:fester112:pasted:20190527-124936.png}}
  
 Give the server some time to get the share up and running, then it is time to map the network folder to a drive letter. Give the server some time to get the share up and running, then it is time to map the network folder to a drive letter.
  • fester112/shares_basic.txt
  • Last modified: 2019/06/20 02:13
  • by admin