Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
fester112:shares_basic [2017/06/19 11:18] – external edit A User Not Logged in | fester112: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 " |
- | {{:fester:ae91f6108caaa0c1ca81a4e893895687.png}} | + | {{:fester112:pasted: |
- | A new smaller window will pop up. Here we can create a new Group. | + | Click the " |
- | Leave the “Group ID:” at its default value of **1001** (1). | + | {{:fester112: |
- | Now type in a name for the new group in the “Group | + | Leave the “Group |
- | 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. |
- | {{: | + | 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: |
- | 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: |
- | A new window will pop up. Here we can create a new User. | + | Click the " |
- | Leave the “User ID:” at its default value of **1001** (1). | + | {{:fester112: |
- | 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 | + | Now type in a 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 | + | Untick the “New Primary Group” |
- | Leave the “Create Home Directory In:” text box at the default **/ | + | The “Primary Group” drop down selection |
- | Leave “Shell:” at its default | + | Leave the “Home Directory” text box at the default |
- | Type in a name for the new user (7) (Fester chose **Test User**). | + | Leave “Shell” at its default setting. |
- | Create | + | Type in a name for the new user (Fester |
- | 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: |
__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 | + | 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 | + | Now click the “Save” button. |
- | + | ||
- | {{: | + | |
==== 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 " |
- | + | ||
- | {{: | + | |
- | + | ||
- | Select “Tank1” or whatever you called | + | |
- | A series of buttons should appear on the bottom of the screen. | + | {{: |
- | 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" |
- | {{:fester:f92e6f8a87ed14753f4c160a0b109a76.png}} | + | {{:fester112:pasted: |
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: |
- | Leave the “Compression level:” drop down selection | + | 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: | + | Set the “Share Type” to whatever suits the type of clients on your network |
- | “ZFS Deduplication: | + | Leave the “Case Sensitivity” drop down selection box and “Enable Atime” at their default settings as shown. |
- | Now click the “Add Dataset” button | + | Now click the “Save” button. |
- | {{: | + | 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. | + | {{: |
- | {{: | + | Click the three vertical dots to the right of your dataset, and select "Edit Permissions" |
- | 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: |
- | + | ||
- | 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: |
- | In the “Owner (user):” drop down selection | + | Leave the “Apply User” tick box at its default setting |
- | Leave the “Apply Owner (group):” tick box (3) at its default setting (with a tick). | + | In the “User” drop down selection |
- | In the “Owner (group):” drop down selection | + | Leave the “Apply Group” tick box at its default setting |
- | Leave the “Apply Mode:” tick box (5) at its default setting (with a tick). | + | In the “Group” drop down selection |
- | If you have chosen | + | Set the “ACL Type” radio button to match the clients on your network |
- | 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: |
- | Now click the “Change” | + | Put a tick in " |
- | {{: | + | 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 |
- | Go to the “Sharing” page. | + | Click "Sharing" in the left column, then " |
- | {{:fester:3aaa0b6fe2d6bfde321c6c5a79c2d284.png}} | + | {{:fester112:pasted: |
- | Now click the “Windows (CIFS)” button (1) and then click the “Add Windows (CIFS) Share” | + | Click the "Add" |
- | {{:fester:9993271b972a8e10c4b9b70bef7a8ba5.png}} | + | {{:fester112:pasted: |
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 ''/ |
- | {{:fester:a7da52b7df403b489d0edcee0b222e55.png}} | + | {{:fester112:pasted: |
- | The window | + | The “Path” text box should now display |
- | When you have it selected click the “Close” button (2). | + | Do not tick the “Use as home share:” tick box at the moment. |
- | {{: | + | 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: |
- | Put a tick in the “Apply Default Permissions: | + | You will now be asked if you wish to enable the SMB share service. |
- | Do not tick the “Allow Guest Access:” tick box (5). | + | {{:fester112: |
- | Now click the “OK” button (6). | + | You should now see your newly-created share. |
- | {{:fester:2d42d97391a0c05c9ee7586158d5421c.png}} | + | {{:fester112:pasted: |
- | 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 | + | Now click " |
- | Click the “No” button (2). | + | {{: |
- | {{: | + | 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: |
- | + | ||
- | {{: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: | + | 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” |
- | {{:fester:2a2d2d7d286a4cacbab325269bd5dba1.png}} | + | {{:fester112:pasted: |
- | 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:” (15) to SMB2. | + | Leave the “Allow execute always” tick box in its default setting |
- | Leave the “Allow execute always:” tick box (16) in its default setting (with a tick). | + | {{:fester112: |
- | {{:fester: | + | 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: | + | 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. |
- | + | ||
- | {{: | + | |
- | + | ||
- | __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: | ||
{{: | {{: | ||
- | 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). |
{{: | {{: | ||
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 | + | ==== Enable SMB Service ==== |
- | + | ||
- | Now go to the " | + | |
- | + | ||
- | {{: | + | |
- | Turn on the CIFS share service. | + | Now click " |
- | {{:fester:9c896640f45eb78c4ba4c574a172a198.png}} | + | {{:fester112:pasted: |
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. |