How do I enable WideLinks on samba's recent release?

va flag

Note: I am aware of the security issues and reasons why it's been changed. I still require the use of wide links.

Samba's recent versions have made it where WideLinks are now supposed to be loaded as a per-share vfs module, but I can't figure out how to install the vfs module in order to use it. I have it set in the vfs modules, but the vfs module doesn't actually exist. I am using mx linux (the new march release) which comes with samba 4.13.13-Debian. I installed samba_vfs_modules but that didn't contain the widelinks one.

fr flag

You still enable it using the same wide links option. Samba will automatically load the VFS module when needed. (The Debian bullseye package contains the module; if MX Linux is missing it, that's deliberate on MX Linux's side and you should probably ask them why that's the case.)

You also need to disable the SMBv1 Unix extensions mode (as well as the upcoming SMBv3 POSIX extension), as it exposes symlinks client-side and conflicts with server-side following of the links.

    wide links = yes
    unix extensions = no

(Disabling POSIX extensions also mostly mitigates the security issue in question, as clients can no longer arbitrarily create symlinks with POSIX-mode on and then trick the server into following them with POSIX-mode off; they can only follow what was already created server-side.)

Sabatica avatar
va flag
I needed to add "allow insecure wide links = yes"
I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.