Results 1 to 7 of 7

Thread: Problem mounting share on my router

  1. #1
    Join Date
    Jan 2016
    Location
    UK
    Posts
    793

    Default Problem mounting share on my router

    On my TW KDE system I am unable to access or mount a share which is defined on my router unless I force CIFS to use vers=1.0 on the mount command. Is there any way to get my system to default to v1.0 for both mounting by command an using Samba. I tried clientmin protpcol set to SMB1 in the smb.conf but testparm shows it is ignored. The annoying thing is that I can access it on Windows 7 without issue and without any additional parameters.

    Stuart

  2. #2
    Join Date
    Jan 2016
    Location
    UK
    Posts
    793

    Default Re: Problem mounting share on my router

    Just to add the output for smbclient

    Code:
    smbclient -d4 -L //192.168.0.1/
    lp_load_ex: refreshing parameters                                                                                                                                                                         
    Initialising global parameters                                                                                                                                                                            
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)                                                                                                                                 
    Processing section "[global]"                                                                                                                                                                             
    doing parameter workgroup = DISORGANISATION                                                                                                                                                               
    doing parameter netbios name = TUMBLEWEED                                                                                                                                                                 
    doing parameter server string = "Deskctop PC"                                                                                                                                                             
    doing parameter local master = yes                                                                                                                                                                        
    doing parameter preferred master = yes                                                                                                                                                                    
    doing parameter os level = 85                                                                                                                                                                             
    doing parameter passdb backend = tdbsam                                                                                                                                                                   
    doing parameter map to guest = Bad User                                                                                                                                                                   
    doing parameter usershare allow guests = No                                                                                                                                                               
    doing parameter client ipc max protocol = CORE                                                                                                                                                            
    doing parameter ldap admin dn =                                                                                                                                                                           
    doing parameter wins server =                                                                                                                                                                             
    doing parameter wins support = No                                                                                                                                                                         
    pm_process() returned Yes                                                                                                                                                                                 
    added interface enp5s0 ip=192.168.0.6 bcast=192.168.0.255 netmask=255.255.255.0                                                                                                                           
    Client started (version 4.7.5-git.37.6d30796c515SUSE-oS15.5-x86_64).
    Connecting to 192.168.0.1 at port 445
     session request ok
     negotiated dialect[NT1] against server[192.168.0.1]
     session setup ok
    Enter DISORGANISATION\stuart's password: 
    Server requested LANMAN password (share-level security) but 'client lanman auth = no' or 'client ntlmv2 auth = yes'
    tree connect failed: NT_STATUS_ACCESS_DENIED
    Stuart

  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,325
    Blog Entries
    15

    Default Re: Problem mounting share on my router

    Hi
    So on the client machine edit /etc/samba/smb.conf in the [global] options for this;
    Code:
    Server requested LANMAN password (share-level security) but 'client lanman auth = no' or 'client ntlmv2 auth = yes'
    On my system I use;
    Code:
    client use spnego = no
    client ntlmv2 auth = no
    I would guess you need;
    Code:
    client lanman auth = yes
    client ntlmv2 auth = no
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  4. #4
    Join Date
    Jan 2016
    Location
    UK
    Posts
    793

    Default Re: Problem mounting share on my router

    Well I added your guess and for good measure the spnego as well. Now smbclient works and the smb protocol from dolphin also accesses the shares OK. However I can only mount them using -o vers=1.0 with a mount cifs command, unless I force that it does not work, also mounting from SMB4K (my preferred way) does not work either. Quite why this is all a bit messy I don't know. ZyXEL made a bad decision on how to configure Samba in their router as you cannot specify a workgroup.

    Stuart

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: Problem mounting share on my router

    Quote Originally Posted by broadstairs View Post
    Well I added your guess and for good measure the spnego as well. Now smbclient works and the smb protocol from dolphin also accesses the shares OK. However I can only mount them using -o vers=1.0 with a mount cifs command, unless I force that it does not work, also mounting from SMB4K (my preferred way) does not work either. Quite why this is all a bit messy I don't know. ZyXEL made a bad decision on how to configure Samba in their router as you cannot specify a workgroup.

    Stuart
    As a workaround, you could put all the mounting options in a shell script, and call that to mount the share,
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,699
    Blog Entries
    1

    Default Re: Problem mounting share on my router

    Quote Originally Posted by broadstairs View Post
    Well I added your guess and for good measure the spnego as well. Now smbclient works and the smb protocol from dolphin also accesses the shares OK. However I can only mount them using -o vers=1.0 with a mount cifs command, unless I force that it does not work, also mounting from SMB4K (my preferred way) does not work either. Quite why this is all a bit messy I don't know. ZyXEL made a bad decision on how to configure Samba in their router as you cannot specify a workgroup.

    Stuart
    You might need to force with the 'client min protocol' directive in smb.conf (global section). For example
    Code:
    client min protocol = NT1
    For more info
    Code:
    man smb.conf

  7. #7
    Join Date
    Jan 2016
    Location
    UK
    Posts
    793

    Default Re: Problem mounting share on my router

    I tried that but SMB4K still fails as does the mount command without specifying vers=1.0.

    Stuart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •