Gene Poole
2021-Jul-16 14:04 UTC
[Samba] CIFS share disconnects on Linux client, but is still accessible via SMBCLIENT
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... On 15/07/2021 15:26, L.P.H. van Belle wrote:> You might need to provide the option vers=1.0 option to the mount command to force version SMB1 > > Greetz, > > Louis > >> -----Oorspronkelijk bericht----- >> Van: samba [mailto:samba-bounces at lists.samba.org] Namens >> Lestrad via samba >> Verzonden: donderdag 15 juli 2021 14:46 >> Aan: samba at lists.samba.org >> Onderwerp: [Samba] CIFS share disconnects on Linux client, >> but is still accessible via SMBCLIENT >> >> Hello. My Wandboard running Arch Linux ARM mounts a cifs >> share hosted on >> a Windows 7 machine at boot. After a certain amount of time the >> connection to the share is lost. I can cd to the mount point >> directory, >> but when I run ls I get the error message: "cannot open >> directory '.': >> Host is down". If I unmount the mount directory and try to >> remount the >> share, I get a "mount error(2): No such file or directory" error. >> >> However, I can still connect to the share using smbclient. And if I >> reboot the Linux box the share again mounts with no problem. >> But after a >> time it becomes inaccessible again. >> >> I've tried several different things on the Windows machine, including >> enabling and disabling SMB v1 and trying all the possible >> settings for >> the NIC (Intel with the latest driver) and for Windows share >> permissions. But the problem must involve Linux, since the >> share remains >> available via smbclient and mounts with no problem when I >> reboot. I've >> updated samba to the latest version and enabled winbind. I'm not sure >> what else to try. >> >> Any help would be appreciated. I can provide any information anyone >> might need. >> >> TIA >> Les >> >> Arch Linux ARM version 5.7.2-1-ARCH >> samba v 4.12.3 >> CIFS v 2.26 >> mount.cifs v 6.10 >> >> >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba >> >> > >
Rowland Penny
2021-Jul-16 14:18 UTC
[Samba] CIFS share disconnects on Linux client, but is still accessible via SMBCLIENT
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