Mandatory, Byte Range, and Opportunistic locking are all enabled by default, and should always be enabled for a
[share_name]
share modes = yes <default config – shown for example only> locking = yes <default config – shown for example only> oplocks = yes
17