SMB version negotiation

Status
Not open for further replies.

FreeNASftw

Contributor
Joined
Mar 1, 2015
Messages
124
They do match, UID/GID = 1000 on both FreeNAS and the Linux client. If they were different I would understand why this happens. The only difference in the mounting is the version, NT1 gets it right automatically, later ones do not without using the GID/UID options.

Purely inquiry, I'm not worried about it. It all just seems a little odd in the way it works to me. The fact that the client supports higher levels of SMB but will fail if NT1 is not offered by the server but other acceptable options are, that the older version doesn't need any extra options to work as expected but the newer versions do.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
They do match, UID/GID = 1000 on both FreeNAS and the Linux client. If they were different I would understand why this happens. The only difference in the mounting is the version, NT1 gets it right automatically, later ones do not without using the GID/UID options.

Purely inquiry, I'm not worried about it. It all just seems a little odd in the way it works to me. The fact that the client supports higher levels of SMB but will fail if NT1 is not offered by the server but other acceptable options are, that the older version doesn't need any extra options to work as expected but the newer versions do.

It might be related to Unix Extensions. I believe traditional "unix extensions" are SMB1 (NT1) - only. Status of SMB3 unix extensions is here, but somewhat out of date. It is on the to-do list for improvements. There are some concerns that something is amiss with Unix extensions in recent FreeNAS: https://bugs.freenas.org/issues/23696

If you don't really need Unix extensions, you can try turning them off, specifying "nounix" option in the mount string, or specifying "sfu" for mounts. Also try setting vers=3.0 instead of 2.1 (if you've set it as that).
 
Last edited:
Status
Not open for further replies.
Top