Author Topic: Samba copying symlinks  (Read 1037 times)

toomanylogins

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Samba copying symlinks
« on: March 17, 2022, 07:13:44 pm »
Hello, I am trying to copy data from my Windows server onto a samba share. I have everything set up okay but on copy I get various errors to do with symlink. I managed to establish that I need to edit the Samba configuration as follows.

And I tried to create a hook /etc/zentyal/hooks/samba.postsetconf as follows

[global]
allow insecure wide links = yes

[share]
follow symlinks = yes
wide links = yes

exit 0

However this doesnt seem to modify  the share.conf or smb.conf after reboot ?

Do I need to create hoooks/smb.postsetconf and shares.postsetconf ??

Any ideas
Thanks
Paul




turalyon

  • Zen Warrior
  • ***
  • Posts: 197
  • Karma: +15/-0
    • View Profile
Re: Samba copying symlinks
« Reply #1 on: March 18, 2022, 01:36:05 pm »
Hi,

If you want to modify a configuration file, you need to use stubs not hooks. Below you have the link from the documentation.

* https://doc.zentyal.org/en/appendix-c.html#stubs

--
“This world is ours, and by the Holy Light we will keep it safe, now and forever".

toomanylogins

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Samba copying symlinks
« Reply #2 on: March 19, 2022, 10:30:32 am »
Got it Thanks.