Isaiah Coughlin
Cadet
- Joined
- Jun 9, 2016
- Messages
- 9
How to create a Windows and Mac compatible share in FreeNAS
Firstly the reason for this how to is if you have both Windows domain computers and Mac's that are not integrated into your Active directory and on the domain already and need to access these shares via guest access. This guide assumes that Active Directory has already been integrated into your FreeNAS under Directory Services or that your all User accounts have been setup under Account if you’re not using A.D. This guide also assumes you have already created your base raid dataset. If you have and questions, knowledge, or feedback feel free to let me know! I have been at this awhile and through trial and error found that this setup above works best in my company's environment. That does not mean however that it is the Right Way for every situation so please keep that in mind :)
1. Create a dataset for your new share and set permissions and size limits
· Navigate to your FreeNAS web gui via your browser and log in as root (or admin equivalent).
· Next select the Storage tab from the top bar .
· Once on the Storage screen make sure Volumes tab is selected.
· In the main window pane select your main dataset that you would like your new one to go within then click the Create Dataset button at the bottom of the screen (looks like a table with a plus sign above it).
· You will now be presented with a pop up with options firstly before we fill in anything lets expand this so we can get full access to what we really need by clicking the Advanced mode button at the bottom of the window.
· Now starting from the top of the pop up lets go through the necessary fields we want.
· For Dataset Name: for this example we will call it Awesome Share but this is where you set what name the new storage location will have.
· Next for Compression level: you can set this how you see fit but for my shares I turn it to Off always (having compression really does not help much and slows performance slightly so if you have the space you need available to work with don’t waste your time on it)
· Next for Share type: we will set this to UNIX as we want both Mac and Windows to interact equally with this share
· Now we will skip a few of the options as they are fine to be left at default (feel free to change them if you need to) and go to Quota for this dataset: here we will set the size of our new Awesome Share for this example I have set mine to 2T.
· Now if you’d like you can change any other settings below but I’ll just leave mine how they are and click Add Dataset button to finish the creation.
· Now with the dataset created we will set the global permissions for the share to do this first navigate to the Volume on the left side bar this can be found under the Storage>Volumes>Main Dataset>Awesom Share for example Hit the plus sign next to your new share and click the Change Permissions option
· From this pop up we will start by changing the Owner(user): to nobody this will allow anyone with guest mac access to make changes
· Next for the Owner(group): we will set this to yourdomain\domain users this will allow your Active directory users to have access to make changes
· Now moving down to the Mode: you will notice that it may be grayed out and cannot be changed to fix this simply go to the permission type: and change from Unix to Windows then back to Unix this is a bug that I still don’t quite understand but you should now be able to change the Mode: permissions by clicking the boxes for this share you will give Read Write & Execute to both owner and group and give Read & Execute to other
· Finally click the check box to Set permission recursively: then click the Change button to complete the setup.
· Now with this completed we will move on to Section 2 turning on sharing for Mac and Windows
2. Turning on sharing to both Windows and Mac
· Navigate to the Services option at the top of the screen, here you’ll see a list of tons of options for today we’ll only be needing AFP (for mac) and CIFS(for windows).
· Click the wrench next to AFP to pull up a pop up window to configure.
· Check the box for Guest Access: then in the Guest account: type nobody.
· Next we can Bind IP Address if needed by default it should be set to your FreeNAS IP unless you’re running vlans for your shares in which case select the IPs you want to run AFP on.
· You can leave all else blank or fill in if you want more customization and click the ok button to finish.
· Next we will click the wrench next to CIFS to open its configuration.
· Here go through and set your info as needed the biggest thing you want to look for is that you set Guest account to nobody and the rest can pretty much be default. So we’ll hit OK to save this.
· Now at the top of the screen in the bar click on Services and make sure AFP and CIFS are turned to the ON position if not then do so now.
· Now on to section 3 to do the final config on creating your shares
3. Configuring your new dataset to share to Windows and Mac
· Navigate to the Sharing option from the top bar
· Here you will see a bunch of options for sharing today we will only need AFP and CIFS
· So let’s start with AFP just below Sharing at the top click Apple(AFP) to open the management screen
· Here we will then click the Add Apple (AFP) Share button
· From this pop up change the Path to point to your new share Awesome Share for example
· For the Name it is pretty self explanatory call it what you want people to see it named as Awesome Share for example
· Now click the Advanced Mode button
· On the extended view scroll down and the only thing that really needs to be changed is to uncheck the AFP3 Unix Privs: the reason for this is because this will conflict with the global settings we applied to the share earlier and create a problem (not sure exactly why this is but if this is on a lot of time my company mac users will revert to read only permissions no matter how i set the check boxes).
· Finally click Ok to finish the setup
· Next at the top Click the Windows (CIFS) tab under Sharing
· Click on the Add Windows (CIFS) Share button
· From this pop up change the Path to point to your new share Awesome Share for example
· Leave use as home share unchecked
· For the Name it is pretty self explanatory call it what you want people to see it named as Awesome Share for example
· Now make sure Apply Default Permissions and Allow Guest Access are checked!
· Hit OK to finish no need to set Advanced Mode unless you feel like looking or changing anything further.
· Now with this completed you officially have a Cross platform share that will allow windows and mac users to exchange info and make changes to files on this share without any issue! YAY!
Afterthought: when connecting from a windows computer it will automatically use the CIFS but for macs make sure that you use the AFP:// protocol when connecting if you use CIFS:// a bunch of programs will have problems writing directly to the raid such as indesign, printshop, etc (especially if you have multiple networks and the traffic is crossing from one the another).. So just stick with the AFP for all your Macs to avoid any headaches. With that being said your new company wide share should run flawlessly.
Firstly the reason for this how to is if you have both Windows domain computers and Mac's that are not integrated into your Active directory and on the domain already and need to access these shares via guest access. This guide assumes that Active Directory has already been integrated into your FreeNAS under Directory Services or that your all User accounts have been setup under Account if you’re not using A.D. This guide also assumes you have already created your base raid dataset. If you have and questions, knowledge, or feedback feel free to let me know! I have been at this awhile and through trial and error found that this setup above works best in my company's environment. That does not mean however that it is the Right Way for every situation so please keep that in mind :)
1. Create a dataset for your new share and set permissions and size limits
· Navigate to your FreeNAS web gui via your browser and log in as root (or admin equivalent).
· Next select the Storage tab from the top bar .
· Once on the Storage screen make sure Volumes tab is selected.
· In the main window pane select your main dataset that you would like your new one to go within then click the Create Dataset button at the bottom of the screen (looks like a table with a plus sign above it).
· You will now be presented with a pop up with options firstly before we fill in anything lets expand this so we can get full access to what we really need by clicking the Advanced mode button at the bottom of the window.
· Now starting from the top of the pop up lets go through the necessary fields we want.
· For Dataset Name: for this example we will call it Awesome Share but this is where you set what name the new storage location will have.
· Next for Compression level: you can set this how you see fit but for my shares I turn it to Off always (having compression really does not help much and slows performance slightly so if you have the space you need available to work with don’t waste your time on it)
· Next for Share type: we will set this to UNIX as we want both Mac and Windows to interact equally with this share
· Now we will skip a few of the options as they are fine to be left at default (feel free to change them if you need to) and go to Quota for this dataset: here we will set the size of our new Awesome Share for this example I have set mine to 2T.
· Now if you’d like you can change any other settings below but I’ll just leave mine how they are and click Add Dataset button to finish the creation.

· Now with the dataset created we will set the global permissions for the share to do this first navigate to the Volume on the left side bar this can be found under the Storage>Volumes>Main Dataset>Awesom Share for example Hit the plus sign next to your new share and click the Change Permissions option
· From this pop up we will start by changing the Owner(user): to nobody this will allow anyone with guest mac access to make changes
· Next for the Owner(group): we will set this to yourdomain\domain users this will allow your Active directory users to have access to make changes
· Now moving down to the Mode: you will notice that it may be grayed out and cannot be changed to fix this simply go to the permission type: and change from Unix to Windows then back to Unix this is a bug that I still don’t quite understand but you should now be able to change the Mode: permissions by clicking the boxes for this share you will give Read Write & Execute to both owner and group and give Read & Execute to other
· Finally click the check box to Set permission recursively: then click the Change button to complete the setup.

· Now with this completed we will move on to Section 2 turning on sharing for Mac and Windows
2. Turning on sharing to both Windows and Mac
· Navigate to the Services option at the top of the screen, here you’ll see a list of tons of options for today we’ll only be needing AFP (for mac) and CIFS(for windows).
· Click the wrench next to AFP to pull up a pop up window to configure.
· Check the box for Guest Access: then in the Guest account: type nobody.
· Next we can Bind IP Address if needed by default it should be set to your FreeNAS IP unless you’re running vlans for your shares in which case select the IPs you want to run AFP on.
· You can leave all else blank or fill in if you want more customization and click the ok button to finish.
· Next we will click the wrench next to CIFS to open its configuration.
· Here go through and set your info as needed the biggest thing you want to look for is that you set Guest account to nobody and the rest can pretty much be default. So we’ll hit OK to save this.
· Now at the top of the screen in the bar click on Services and make sure AFP and CIFS are turned to the ON position if not then do so now.
· Now on to section 3 to do the final config on creating your shares
3. Configuring your new dataset to share to Windows and Mac
· Navigate to the Sharing option from the top bar
· Here you will see a bunch of options for sharing today we will only need AFP and CIFS
· So let’s start with AFP just below Sharing at the top click Apple(AFP) to open the management screen
· Here we will then click the Add Apple (AFP) Share button
· From this pop up change the Path to point to your new share Awesome Share for example
· For the Name it is pretty self explanatory call it what you want people to see it named as Awesome Share for example
· Now click the Advanced Mode button
· On the extended view scroll down and the only thing that really needs to be changed is to uncheck the AFP3 Unix Privs: the reason for this is because this will conflict with the global settings we applied to the share earlier and create a problem (not sure exactly why this is but if this is on a lot of time my company mac users will revert to read only permissions no matter how i set the check boxes).
· Finally click Ok to finish the setup
· Next at the top Click the Windows (CIFS) tab under Sharing
· Click on the Add Windows (CIFS) Share button
· From this pop up change the Path to point to your new share Awesome Share for example
· Leave use as home share unchecked
· For the Name it is pretty self explanatory call it what you want people to see it named as Awesome Share for example
· Now make sure Apply Default Permissions and Allow Guest Access are checked!
· Hit OK to finish no need to set Advanced Mode unless you feel like looking or changing anything further.
· Now with this completed you officially have a Cross platform share that will allow windows and mac users to exchange info and make changes to files on this share without any issue! YAY!
Afterthought: when connecting from a windows computer it will automatically use the CIFS but for macs make sure that you use the AFP:// protocol when connecting if you use CIFS:// a bunch of programs will have problems writing directly to the raid such as indesign, printshop, etc (especially if you have multiple networks and the traffic is crossing from one the another).. So just stick with the AFP for all your Macs to avoid any headaches. With that being said your new company wide share should run flawlessly.
Last edited: