install.doctor
install.doctor copied to clipboard
Samba configuration on macOS
β What are you experiencing an issue with?
Latest Release
β Version
Current
π Description
The Samba setup role in home/.chezmoiscripts/universal/*samba*.tmpl needs to be fixed on macOS. Not sure if we can use the system or we have to rely on a Homebrew library but the feature goal is to automatically setup Samba shares on macOS too. However, I do not believe the configuration can be applied to the /etc/samba/config referenced in the script (that only works for Linux) so we need to come up with an alternative for enabling Samba on macOS and applying all the logic outlined in the default Samba config we are applying on Linux machines.
βΊοΈ Steps To Reproduce
No response
π Relevant Log Output
No response
π‘ Possible Solution
No response
Did a lot of research. The newer versions of the OS has a sharing command that can be used to manage File sharing. Permissions are managed using what is set on the Folders - it does not look like it is managed separately (tested it by making changes in Preferences and see if reflect on the folder and vice versa).
I haven't been able to find a way to control Printer sharing in a similar fashion. If you know of any method, please advise.
As for samba, homebrew package can be used. It appears that there is no set location for the config file, but, it is configurable in the Launch Config. It looks like it is built without printer support (see). I have not tested configuring Samba. Do we want to give this a try or is the built in feature sufficient? The changes for the 1st method are in the 22_samba_mac branch.
@ProfessorManhattan, could you please review the comment and share your inputs?