Shared Subfolder

I need a way to share a subfolder in an existing share with a user that is not in the owning group of said share. I know how to do it with samba, but I have read that I cannot edit the config in NS, so how can this be accomplished.
Share1 - read/write access
Share1/sub/sub2 - need access to “sub2” by user2, who is not, and cannot be in group1.

You may use a custom template:

Create the directory for the custom template:

mkdir -p /etc/e-smith/templates-custom/etc/samba/smb.conf

Create the file /etc/e-smith/templates-custom/etc/samba/smb.conf/91custom and put the needed share configuration there.

After expand-template /etc/samba/smb.conf your configuration should have been added to /etc/samba/smb.conf.

To apply the config and restart the relevant services:

signal-event nethserver-samba-update

Thank you , works great.
I assume there is no way to see this is the Shared Folders section in the front end, at least as a reminder that the share is there, if not editable?

You may try

It shows the status of the shares like connected users so it may act as reminder that a share exists.

1 Like

That is great, thanks a lot!

1 Like