[Samba] Change in mount behavior of the CIFS module from Debian kernel 6.12 to 6.16

Peter Milesson miles at atmos.eu
Wed Nov 19 13:42:27 UTC 2025


Hi folks,

I got a seriously unpleasant problem, when LXDE stopped working in a 
bunch of terminals after kernel upgrade from 6.12.48 to 6.16.3. There 
were no indications about errors in the log files, so tracking down the 
bug was very hard. The only find was a couple of errors in the 
~/.xsession-errors file. The error was basically that ssh-agent could 
not bind to sockets in the ~/.ssh/agent directory, as they were missing.

I'm mounting the user's folder under /home from a CIFS server with 
pam-mount after successful authentication. The mount parameters were:

dir_mode=0700,nosuid,nodev,sec=krb5i,cruid=<userid>,mfsymlinks,nobrl,vers=3.0

Using kernel 6.16.3, the sshd-agent could not create sockets in the 
~/.ssh/agent directory. That worked with kernel 6.12.48, and LXDE was 
happy. I read through the CIFS documentation and found that the 
parameter sfu had any relevance. I replaced mfsymlinks with sfu so the 
parameters sent to cifs mount were:

dir_mode=0700,nosuid,nodev,sec=krb5i,cruid=<userid>,sfu,nobrl,vers=3.0

After this change, sockets were created, and LXDE started on the terminal.

Please, could somebody who knows explain to me, if the change in 
mfsymlinks behavior was intentional, or if it is a bug? Is the sfu 
parameter expected to stay for the foreseeable future, or will that also 
be changed or removed? Are there any alternatives to mfsymlinks and sfu?

Best regards,

Peter







More information about the samba mailing list