andycapo at virgilio.it
2020-Jul-15  17:51 UTC
[Samba] Samba mount error after server packages update
Hello,
I've a virtual machine working as a samba server ("clear linux release
28640", whose relevant information are in the attached file
"server_clearmi_28640.txt").
The samba client is an android 4 virtual machine
(https://www.android-x86.org/releases/releasenote-4-4-r5.html).
I can succesfully mount samba shares from the android "terminal
emulator", with the following command, for example:
---
# android_share
su root busybox mount -v -t cifs \
-o
username=andy,password=pass,nounix,nosuid,nodev,noexec,noatime,gid=10028,uid=10023,rw
\
//192.168.213.133/android_share /sdcard/android_share
---
So far so good.
Now I have just upgraded the server machine to "clear linux release
33490". Only the full system upgrade has been performed, with no other
changes.
After the upgrade, the samba version has been updated from 4.10.0 to 4.12.3.
The samba server starts correctly (and it works correctly with windows clients),
but when I try to mount the filesystem on the android client (with the same
command shown before), I get the following error:
"operation not supported on transport endpoint".
I don't understand if this is a bug in the new server, or if the updated
samba release requires different parameters in the smb.conf file.
Any suggestion?
Andy
-------------- next part --------------
andy at clearmi ~ $ swupd info
Installed version: 28640
Version URL:       https://cdn.download.clearlinux.org/update/
Content URL:       https://cdn.download.clearlinux.org/update/
andy at clearmi ~ $ uname -r
5.0.6-726.native
andy at clearmi ~ $ sudo smbstatus
Samba version 4.10.0
PID     Username     Group        Machine                                  
Protocol Version  Encryption           Signing
----------------------------------------------------------------------------------------------------------------------------------------
514     andy      users        192.168.213.1 (ipv4:192.168.213.1:55925)  SMB3_11
-                    partial(AES-128-CMAC)
620     andy      users        192.168.213.135 (ipv4:192.168.213.135:40103) NT1 
-                    -
Service      pid     Machine       Connected at                     Encryption  
Signing
---------------------------------------------------------------------------------------------
android_share 620     192.168.213.135 Wed Jul 15 11:34:54 AM 2020 UTC  -        
-
andy      514     192.168.213.1 Wed Jul 15 11:10:06 AM 2020 UTC  -            -
Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock          
SharePath   Name   Time
--------------------------------------------------------------------------------------------------
620          1000       DENY_NONE  0x120089    RDONLY     NONE            
/home/andy/android_share   archive1.rar   Wed Jul 15 15:38:41 2020
620          1000       DENY_NONE  0x120089    RDONLY     NONE            
/home/andy/android_share   archive1.rar   Wed Jul 15 15:38:41 2020
620          1000       DENY_NONE  0x120089    RDONLY     EXCLUSIVE       
/home/andy/android_share   archive2.rar   Wed Jul 15 15:38:41 2020
514          1000       DENY_NONE  0x100081    RDONLY     NONE            
/home/andy   .   Wed Jul 15 11:28:49 2020
andy at clearmi ~ $ cat /etc/samba/smb.conf
[global]
    workgroup = WORKGROUP
    passdb backend = tdbsam
    printing = cups
    printcap name = cups
    printcap cache time = 750
    cups options = raw
    map to guest = Bad User
    include = /etc/samba/dhcp.conf
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    usershare path     usershare allow guests = Yes
    ldap admin dn     usershare max shares = 100
    wins server     wins support = No
    mangled names = no
    dos charset = ISO8859-15
    unix charset = UTF-8
		follow symlinks = yes
		wide links = yes
		unix extensions = no
[homes]
    comment = Home Directories
    valid users = %S, %D%w%S
    read only = No
    inherit acls = Yes
    browseable = No
[profiles]
    comment = Network Profiles Service
    path = %H
    read only = No
    store dos attributes = Yes
    create mask = 0600
    directory mask = 0700
    browseable = No
[users]
    comment = All users
    path = /home
    read only = No
    inherit acls = Yes
    veto files = /aquota.user/groups/shares/
    guest ok = Yes
    # create mask = 0664
    # directory mask = 0775
    force user = andy
    browseable = yes
[groups]
    comment = All groups
    path = /home/groups
    read only = No
    inherit acls = Yes
    browseable = No
[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 = @ntadmin root
    force group = ntadmin
    create mask = 0664
    directory mask = 0775
    browseable = No
[android_share]
    comment = android_share
    path = /home/andy/android_share/
    read only = No
    guest only = Yes
    force user = andy
    browseable = No
andy at clearmi ~ $
Rowland penny
2020-Jul-15  18:19 UTC
[Samba] Samba mount error after server packages update
On 15/07/2020 18:51, andy via samba wrote:> Hello, > I've a virtual machine working as a samba server ("clear linux release 28640", whose relevant information are in the attached file "server_clearmi_28640.txt").What I cannot understand is why portions of your smb.conf are only really relevant on an NT4-style PDC or an AD DC/member and the smb.conf is for a standalone server ?> The samba client is an android 4 virtual machine (https://www.android-x86.org/releases/releasenote-4-4-r5.html). > I can succesfully mount samba shares from the android "terminal emulator", with the following command, for example: > --- > # android_share > su root busybox mount -v -t cifs \ > -o username=andy,password=pass,nounix,nosuid,nodev,noexec,noatime,gid=10028,uid=10023,rw \ > //192.168.213.133/android_share /sdcard/android_share > --- > So far so good. > > Now I have just upgraded the server machine to "clear linux release 33490". Only the full system upgrade has been performed, with no other changes. > After the upgrade, the samba version has been updated from 4.10.0 to 4.12.3. > The samba server starts correctly (and it works correctly with windows clients), but when I try to mount the filesystem on the android client (with the same command shown before), I get the following error: > "operation not supported on transport endpoint". > > I don't understand if this is a bug in the new server, or if the updated samba release requires different parameters in the smb.conf file. > Any suggestion? > AndyI would hazard a guess that your Android client needs updating, Samba turned SMBv1 off at 4.11.0, so it now only uses SMBv2 or SMBv3 Rowland
Andrew Walker
2020-Jul-15  18:19 UTC
[Samba] Samba mount error after server packages update
On Wed, Jul 15, 2020 at 1:52 PM andy via samba <samba at lists.samba.org> wrote:> Hello, > I've a virtual machine working as a samba server ("clear linux release > 28640", whose relevant information are in the attached file > "server_clearmi_28640.txt"). > > The samba client is an android 4 virtual machine ( > https://www.android-x86.org/releases/releasenote-4-4-r5.html). > I can succesfully mount samba shares from the android "terminal emulator", > with the following command, for example: > --- > # android_share > su root busybox mount -v -t cifs \ > -o > username=andy,password=pass,nounix,nosuid,nodev,noexec,noatime,gid=10028,uid=10023,rw > \ > //192.168.213.133/android_share /sdcard/android_share > --- > So far so good. > > Now I have just upgraded the server machine to "clear linux release > 33490". Only the full system upgrade has been performed, with no other > changes. > After the upgrade, the samba version has been updated from 4.10.0 to > 4.12.3. > The samba server starts correctly (and it works correctly with windows > clients), but when I try to mount the filesystem on the android client > (with the same command shown before), I get the following error: > "operation not supported on transport endpoint". > > I don't understand if this is a bug in the new server, or if the updated > samba release requires different parameters in the smb.conf file. > Any suggestion? > Andy-- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/sambaIn samba 4.11 the default server minimum protocol was increased to SMB3_02. Perhaps your client requires SMB1 (NT1)? https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html#SERVERMINPROTOCOL
Andrew Walker
2020-Jul-15  18:21 UTC
[Samba] Samba mount error after server packages update
On Wed, Jul 15, 2020 at 2:19 PM Andrew Walker <walker.aj325 at gmail.com> wrote:> > > On Wed, Jul 15, 2020 at 1:52 PM andy via samba <samba at lists.samba.org> > wrote: > >> Hello, >> I've a virtual machine working as a samba server ("clear linux release >> 28640", whose relevant information are in the attached file >> "server_clearmi_28640.txt"). >> >> The samba client is an android 4 virtual machine ( >> https://www.android-x86.org/releases/releasenote-4-4-r5.html). >> I can succesfully mount samba shares from the android "terminal >> emulator", with the following command, for example: >> --- >> # android_share >> su root busybox mount -v -t cifs \ >> -o >> username=andy,password=pass,nounix,nosuid,nodev,noexec,noatime,gid=10028,uid=10023,rw >> \ >> //192.168.213.133/android_share /sdcard/android_share >> --- >> So far so good. >> >> Now I have just upgraded the server machine to "clear linux release >> 33490". Only the full system upgrade has been performed, with no other >> changes. >> After the upgrade, the samba version has been updated from 4.10.0 to >> 4.12.3. >> The samba server starts correctly (and it works correctly with windows >> clients), but when I try to mount the filesystem on the android client >> (with the same command shown before), I get the following error: >> "operation not supported on transport endpoint". >> >> I don't understand if this is a bug in the new server, or if the updated >> samba release requires different parameters in the smb.conf file. >> Any suggestion? >> Andy-- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba > > > In samba 4.11 the default server minimum protocol was increased to > SMB3_02. Perhaps your client requires SMB1 (NT1)? > > https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html#SERVERMINPROTOCOL >Correction: SMB2_02.
andycapo at virgilio.it
2020-Jul-16  06:39 UTC
[Samba] Samba mount error after server packages update
On Wed, Jul 15, 2020 Andrew Walker wrote:> In samba 4.11 the default server minimum protocol was increased to SMB2_02. > Perhaps your client requires SMB1 (NT1)?Yes, adding the line server min protocol = NT1 to the smb.conf solved the issue. Many thanks Andy
Rowland penny
2020-Jul-16  07:32 UTC
[Samba] Samba mount error after server packages update
On 16/07/2020 07:39, andy via samba wrote:> On Wed, Jul 15, 2020 Andrew Walker wrote: >> In samba 4.11 the default server minimum protocol was increased to SMB2_02. >> Perhaps your client requires SMB1 (NT1)? > Yes, adding the line > server min protocol = NT1 > to the smb.conf solved the issue. > Many thanks > Andy >Yes, but it opened another issue, your network is now insecure and eventually SMBv1 will disappear. Rowland
andycapo at virgilio.it
2020-Jul-16  08:28 UTC
[Samba] Samba mount error after server packages update
On 16/07/2020 07:39, Rowland via samba wrote:> Yes, but it opened another issue, your network is now insecure and > eventually SMBv1 will disappear.Thank you Rowland. Unfortunately upgrading the samba client (android virtual machine) is not an option at the moment. The samba server is running over a virtual machine with the VMware NAT network, not exposed to the external. So I don't see specific problems with this configuration. Removing support to the SMBv1 is not a problem for me: in this case I will keep this samba server without further upgrades.