QA: How can I set a global samba option permanently?

Question

I want to change a [global] samba setting, but any change in /etc/samba/smb.conf will get reverted during an upgrade, because the file is auto-generated from Univention template files.
How can I make my changes permanent?

Answer

You can set any [global] samba setting via UCR variables. Here are a few examples:

ucr set 'samba/global/options/restrict anonymous'=2
ucr set 'samba/global/options/dns zone transfer clients allow'='127.0.0.1'

This topic was automatically closed after 24 hours. New replies are no longer allowed.

Mastodon