I am running the PCLinux OS (kernel 5.10.12) and it has recently upgraded samba to 4.10.2.?? With the upgrade the connection to my NAS units have ceased to work.?? The NAS is a DLink DNS-343 (old but they work).?? I have five of them in my network and use them for secondary storage so only spin them up when I need them. My last access to the NAS was about a month ago before the upgrade to 4.10.2 The description of the drive within the "Configuration Your Computer" app on PCLOS is:/ / /?? Mount point: /mnt/DMediaV1 ?? Device: //dmedia/Volume_1 ?? Type: cifs ?? Options: vers=1.0,auto,user,username=%/ The fstab entry on the PCLOS machine for this unit is - ///dmedia/Volume_1 /mnt/DMediaV1 cifs vers=1.0,user,username=% 0 0/ which was created prior to the upgrade. The command used prior to the upgrade was "mount -t cifs //dmedia/Volume_1 /mnt/DMediaV1".?? After the upgrade it prompted for a password so added the username and password options but received the message: mount error(2): No such file or directory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg) The only thing in dmesg to the mount request is /[30072.589075] CIFS: Attempting to mount //dmedia/Volume_1/ I am able to connect to the share from both a Windows XP VM and from a QNAP NAS but am not able to connect to it from my PCLOS workstation. It was suggested to use "sec=ntlm" by the PCLOS folks but that results in the same error above
On Tue, 7 May 2019 16:19:30 -0400 Phil Dermott via samba <samba at lists.samba.org> wrote:> I am running the PCLinux OS (kernel 5.10.12) and it has recently > upgraded samba to 4.10.2.?? With the upgrade the connection to my NAS > units have ceased to work.?? The NAS is a DLink DNS-343 (old but they > work).?? I have five of them in my network and use them for secondary > storage so only spin them up when I need them. > > My last access to the NAS was about a month ago before the upgrade to > 4.10.2 > > The description of the drive within the "Configuration Your Computer" > app on PCLOS is:/ > / > /?? Mount point: /mnt/DMediaV1 > ?? Device: //dmedia/Volume_1 > ?? Type: cifs > ?? Options: vers=1.0,auto,user,username=%/ > > The fstab entry on the PCLOS machine for this unit is - > ///dmedia/Volume_1 /mnt/DMediaV1 cifs vers=1.0,user,username=% 0 0/ > which was created prior to the upgrade. > > The command used prior to the upgrade was "mount -t cifs > //dmedia/Volume_1 /mnt/DMediaV1".?? After the upgrade it prompted for > a password so added the username and password options but received > the message: > mount error(2): No such file or directory > Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and > kernel log messages (dmesg) > > The only thing in dmesg to the mount request is /[30072.589075] CIFS: > Attempting to mount //dmedia/Volume_1/ > > I am able to connect to the share from both a Windows XP VM and from > a QNAP NAS but am not able to connect to it from my PCLOS workstation. > > It was suggested to use "sec=ntlm" by the PCLOS folks but that > results in the same error aboveCan you post your smb.conf Rowland
As requested - smb.conf # See smb.conf.example for a more detailed config file or # read the smb.conf manpage. # Run 'testparm' to verify the config is correct after # you modified it. [global] ?????????????? workgroup = HOME ?????????????? server string = Samba Server Version %v ?????????????? netbios name = LP # log files split per-machine: ?????????????? log file = /var/log/samba/log.%m ?????????????? max log size = 50 ?????????????? security = user ?????????????? passdb backend = tdbsam ?????????????? printing = cups ?????????????? printcap name = cups ?????????????? load printers = yes ?????????????? cups options = raw [homes] ?????????????? comment = Home Directories ?????????????? valid users = %S, %D%w%S ?????????????? browseable = No ?????????????? read only = No ?????????????? inherit acls = Yes [printers] ?????????????? comment = All Printers ?????????????? path = /var/tmp ?????????????? printable = Yes ?????????????? create mask = 0600 ?????????????? browseable = No [print$] ?????????????? comment = Printer Drivers ?????????????? path = /var/lib/samba/drivers ?????????????? write list = @printadmin root ?????????????? force group = @printadmin ?????????????? create mask = 0664 ?????????????? directory mask = 0775 [Elements] ?????? path = /media/Elements ?????? comment = Extra drive ?????? browseable = yes ?????? public = yes ?????? writable = yes [Vuze] ?????? path = /mnt/extradasd/Vuze ?????? comment = Vuze storage ?????? browseable = yes ?????? public = yes ?????? writable = yes [Extradasd] ?????? path = /mnt/extradasd ?????? comment = Additional storage ?????? browseable = yes ?????? public = yes ?????? writable = yes Rowland Penny via samba wrote on 5/7/19 4:56 PM:> On Tue, 7 May 2019 16:19:30 -0400 > Phil Dermott via samba<samba at lists.samba.org> wrote: > >> I am running the PCLinux OS (kernel 5.10.12) and it has recently >> upgraded samba to 4.10.2.?? With the upgrade the connection to my NAS >> units have ceased to work.?? The NAS is a DLink DNS-343 (old but they >> work).?? I have five of them in my network and use them for secondary >> storage so only spin them up when I need them. >> >> My last access to the NAS was about a month ago before the upgrade to >> 4.10.2 >> >> The description of the drive within the "Configuration Your Computer" >> app on PCLOS is:/ >> / >> /?? Mount point: /mnt/DMediaV1 >> ?? Device: //dmedia/Volume_1 >> ?? Type: cifs >> ?? Options: vers=1.0,auto,user,username=%/ >> >> The fstab entry on the PCLOS machine for this unit is - >> ///dmedia/Volume_1 /mnt/DMediaV1 cifs vers=1.0,user,username=% 0 0/ >> which was created prior to the upgrade. >> >> The command used prior to the upgrade was "mount -t cifs >> //dmedia/Volume_1 /mnt/DMediaV1".?? After the upgrade it prompted for >> a password so added the username and password options but received >> the message: >> mount error(2): No such file or directory >> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and >> kernel log messages (dmesg) >> >> The only thing in dmesg to the mount request is /[30072.589075] CIFS: >> Attempting to mount //dmedia/Volume_1/ >> >> I am able to connect to the share from both a Windows XP VM and from >> a QNAP NAS but am not able to connect to it from my PCLOS workstation. >> >> It was suggested to use "sec=ntlm" by the PCLOS folks but that >> results in the same error above > Can you post your smb.conf > > Rowland >-- Philip Dermott pdermott at rogers.com http://dermottft2.duckdns.org
On Tue, 7 May 2019 18:06:35 -0400 Phil Dermott <pdermott at rogers.com> wrote:> As requested - smb.conf > > # See smb.conf.example for a more detailed config file or > # read the smb.conf manpage. > # Run 'testparm' to verify the config is correct after > # you modified it. > > [global] > ?????????????? workgroup = HOME > ?????????????? server string = Samba Server Version %v > ?????????????? netbios name = LP > > # log files split per-machine: > ?????????????? log file = /var/log/samba/log.%m > ?????????????? max log size = 50 > > ?????????????? security = user > > ?????????????? passdb backend = tdbsam > > ?????????????? printing = cups > ?????????????? printcap name = cups > ?????????????? load printers = yes > ?????????????? cups options = raw > > [homes] > ?????????????? comment = Home Directories > ?????????????? valid users = %S, %D%w%S > ?????????????? browseable = No > ?????????????? read only = No > ?????????????? inherit acls = Yes > > [printers] > ?????????????? comment = All Printers > ?????????????? path = /var/tmp > ?????????????? printable = Yes > ?????????????? create mask = 0600 > ?????????????? browseable = No > > [print$] > ?????????????? comment = Printer Drivers > ?????????????? path = /var/lib/samba/drivers > ?????????????? write list = @printadmin root > ?????????????? force group = @printadmin > ?????????????? create mask = 0664 > ?????????????? directory mask = 0775 > > [Elements] > ?????? path = /media/Elements > ?????? comment = Extra drive > ?????? browseable = yes > ?????? public = yes > ?????? writable = yes > [Vuze] > ?????? path = /mnt/extradasd/Vuze > ?????? comment = Vuze storage > ?????? browseable = yes > ?????? public = yes > ?????? writable = yes > [Extradasd] > ?????? path = /mnt/extradasd > ?????? comment = Additional storage > ?????? browseable = yes > ?????? public = yes > ?????? writable = yes >Is the above from the NAS or the PCLOS computer ? As it refers to printers, I think it is most likely from the PCLOS. I think what is going on here is that your NAS is expecting NTLMv1 and your new Samba 4.10.2 now has this turned off by default. Try adding 'ntlm auth = yes' to the smb.conf Rowland PS What's with all the '?' marks
Thank you Rowland - adding "ntlm auth = yes" in the global section and rebooting the machine has provided access once again to the NAS. In answer to your questions - the smb.conf was from the PCLOS machine. Question - I had tried sec=ntlm in the mount statement without it being in the smb.conf - did that not work because ntlmv1 had not been enabled? As to the question marks, that is something to do with the mail client (Thunderbird) - I do not see the question marks when composing the message to send but only see them when the message is distributed from the list server. Rowland Penny via samba wrote on 5/8/19 3:07 AM:> On Tue, 7 May 2019 18:06:35 -0400 > Phil Dermott <pdermott at rogers.com> wrote: > >> As requested - smb.conf >> >> # See smb.conf.example for a more detailed config file or >> # read the smb.conf manpage. >> # Run 'testparm' to verify the config is correct after >> # you modified it. >> >> [global] >> ?????????????? workgroup = HOME >> ?????????????? server string = Samba Server Version %v >> ?????????????? netbios name = LP >> >> # log files split per-machine: >> ?????????????? log file = /var/log/samba/log.%m >> ?????????????? max log size = 50 >> >> ?????????????? security = user >> >> ?????????????? passdb backend = tdbsam >> >> ?????????????? printing = cups >> ?????????????? printcap name = cups >> ?????????????? load printers = yes >> ?????????????? cups options = raw >> >> [homes] >> ?????????????? comment = Home Directories >> ?????????????? valid users = %S, %D%w%S >> ?????????????? browseable = No >> ?????????????? read only = No >> ?????????????? inherit acls = Yes >> >> [printers] >> ?????????????? comment = All Printers >> ?????????????? path = /var/tmp >> ?????????????? printable = Yes >> ?????????????? create mask = 0600 >> ?????????????? browseable = No >> >> [print$] >> ?????????????? comment = Printer Drivers >> ?????????????? path = /var/lib/samba/drivers >> ?????????????? write list = @printadmin root >> ?????????????? force group = @printadmin >> ?????????????? create mask = 0664 >> ?????????????? directory mask = 0775 >> >> [Elements] >> ?????? path = /media/Elements >> ?????? comment = Extra drive >> ?????? browseable = yes >> ?????? public = yes >> ?????? writable = yes >> [Vuze] >> ?????? path = /mnt/extradasd/Vuze >> ?????? comment = Vuze storage >> ?????? browseable = yes >> ?????? public = yes >> ?????? writable = yes >> [Extradasd] >> ?????? path = /mnt/extradasd >> ?????? comment = Additional storage >> ?????? browseable = yes >> ?????? public = yes >> ?????? writable = yes >> > Is the above from the NAS or the PCLOS computer ? > As it refers to printers, I think it is most likely from the PCLOS. > > I think what is going on here is that your NAS is expecting NTLMv1 and > your new Samba 4.10.2 now has this turned off by default. > > Try adding 'ntlm auth = yes' to the smb.conf > > Rowland > > PS What's with all the '?' marks >-- Philip Dermott pdermott at rogers.com http://dermottft2.duckdns.org