[Samba] CIFS share disconnects on Linux client, but is still accessible via SMBCLIENT

Gene Poole landrlatz at free.fr
Sat Jul 17 15:58:38 UTC 2021

Hello and thanks for answering. Here's the current mount line from fstab:

//192.168.x.xx/Work /mnt/Work cifs 
0 0

and here's smb.conf:


workgroup = WORKGROUP
client max protocol = SMB3
netbios name = NAS
server string = Our new, smaller, lighter, kinder, gentler NAS

local master = yes
domain master = yes
preferred master = yes
os level = 255

password server = None
guest ok = yes
guest account = nobody
security = user
map to guest = Bad Password
large readwrite = yes
follow symlinks = yes
wide links = yes
unix extensions = no

logfile = /var/log/samba/newsambalog.log
log level = 3 auth:5 winbind:5 smb:5
debug timestamp = yes
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes

  ----------(I've left off the configurations for the shares on the 
Linux box)------------

Note that the Windows host currently has both SMB1 and SMB2 enabled. 
I've already tried using the server name instead of the path in the 
mount line.

Let me know if you want to see anything from the samba log as well.

On 16/07/2021 16:18, Rowland Penny wrote:
> On Fri, 2021-07-16 at 16:04 +0200, Gene Poole via samba wrote:
>> Thanks. I added *vers=1.0 *to the mount line in fstab and it doesn't
>> help. Of course I can't be sure SMB1 is actually being used. And
>> isn't
>> SMB1 insecure?
>> In fact, with no "vers=" option or with "vers=2.0" or with
>> "vers=1.0"
>> the share mounts fine at boot. But it disappears after around 20
>> minutes. Yet it remains accessible via smbclient...
> It might help if you posted your smb.conf and mount command.
> Rowland

More information about the samba mailing list