Extras in smb.conf

Can we have an include in smb.conf like

include /etc/samba/extras.conf

This would allow for site customization that would not get overwritten. Perhaps it is already handled in a different manner and I have not found the docs for it yet.

On my current setup in extras I have shares defined for my and my wife’s home share and each of our login scripts assign those to a drive letter. This way we each can easily get to the other’s files, yet keep everything separate.

1 Like

You may create a custom template:

Create a file /etc/e-smith/templates-custom/etc/samba/smb.conf/91shares and put your share definitions or the include in there. To apply the changes just do signal-event nethserver-samba-save or expand-template /etc/samba/smb.conf.

http://docs.nethserver.org/projects/nethserver-devel/en/v7/templates.html#local-site-overrides-templates-custom-and-templates-user-custom

Another way would be to integrate the shares with Nethserver UI and map the drives with RSAT from a Windows client.

2 Likes