[Samba] Symlink bugs with SMB3 unix extensions
Ralph Boehme
slow at samba.org
Fri Dec 19 09:41:03 UTC 2025
On 12/18/25 10:00 PM, Jeremy Allison via samba wrote:
> On 12/18/25 11:35 AM, Ralph Boehme via samba wrote:
>> On 12/18/25 8:32 PM, Jeremy Allison via samba wrote:
>>> On 12/18/25 10:25 AM, Nikkos Svoboda via samba wrote:
>>>> I can simply think that this *might* not be intended behavior for
>>>> unix extension clients. Is this intended behavior for this setting
>>>> combo?
>>>
>>> Yes. Setting "wide links = yes" and "allow insecure wide links = yes"
>>> always hides all symlinks from clients. It's dangerously insecure
>>> and the settings remain for legacy smb.conf files and cases where
>>> the admin knows what they are doing. As I recall setting this
>>> does always generate a warning in the log.
>>
>> I wonder though if "follow symlinks = no" being forced by SMB3 POSIX
>> should trump "wide links = yes" and "allow insecure wide links = yes"
>> in theory? So this might be a bug.
>>
>
> I think setting "wide links = yes" and "allow insecure wide links = yes"
> deliberately turns off SMB3 POSIX, but I haven't had time to check.
if that's the case, I guess it's still a bug. :)
It seems the problem is vfs_widelinks.c which doesn't honor and in some
place can't easily honor the per CREATE POSIX behaviour change. :/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20251219/bda2aa33/OpenPGP_signature.sig>
More information about the samba
mailing list