Can Access SMB from WIndows, But Cannot from Linux

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Newbie_from_NJ
Level 2
Level 2
Posts: 59
Joined: Mon Aug 11, 2014 6:31 pm

Can Access SMB from WIndows, But Cannot from Linux

Postby Newbie_from_NJ » Mon Oct 30, 2017 11:54 pm

Hi guys,

I currently have a dual boot setup of Windows 10 and Mint 18.2 x64 on Lenovo laptop. Windows 10 has no problems accessing SMB shares. But Mint on the other hand can't access them.

To be more precise, my issue is accessing my LibreElec Asus Chromebox from Linux Mint.

1.
I've tried accessing via file browser:
smb://10.0.x.xx/

I get "Could not display "smb://10.0.x.xx/".
Error: Failed to retrieve failed list from server: Connection timed out. Please select another viewer and try again.

Newbie_from_NJ
Level 2
Level 2
Posts: 59
Joined: Mon Aug 11, 2014 6:31 pm

Re: Can Access SMB from WIndows, But Cannot from Linux

Postby Newbie_from_NJ » Mon Oct 30, 2017 11:54 pm

2.
LibreElec requires SMB2 so I've tried amending /etc/samba/samba.conf as follows:

Code: Select all

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
   server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
#   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

# This is the change I did that should allow you to connect to SMB shares using SMB2
   protocol = SMB2

#### Networking ####

Newbie_from_NJ
Level 2
Level 2
Posts: 59
Joined: Mon Aug 11, 2014 6:31 pm

Re: Can Access SMB from WIndows, But Cannot from Linux

Postby Newbie_from_NJ » Tue Oct 31, 2017 12:05 am

3.
I've also tried accessing SMB via Network on File browser.. no avail. See attached images.

Newbie_from_NJ
Level 2
Level 2
Posts: 59
Joined: Mon Aug 11, 2014 6:31 pm

Re: Can Access SMB from WIndows, But Cannot from Linux

Postby Newbie_from_NJ » Tue Oct 31, 2017 12:07 am

4.
Here's the output of smbclient which shows me all the shared folders in LibreElec. Now how can I access them via GUI?

Code: Select all

unknown@LinuxMint ~ $ smbclient -L 10.0.x.xx -m SMB2 -U libreelec
WARNING: The "syslog" option is deprecated
Enter libreelec's password:
Domain=[LIBREELEC] OS=[] Server=[]
    Sharename       Type      Comment
    ---------       ----      -------
    Storage         Disk     
    Kodi            Disk     
    Update          Disk     
    Videos          Disk     
    Music           Disk     
    TV Shows        Disk     
    Recordings      Disk     
    Downloads       Disk     
    Pictures        Disk     
    Emulators       Disk     
    Configfiles     Disk     
    Userdata        Disk     
    Screenshots     Disk     
    Logfiles        Disk     
    Backup          Disk     
    Picons          Disk     
    IPC$            IPC       IPC Service (LibreELEC)
Domain=[LIBREELEC] OS=[] Server=[]
    Server               Comment
    ---------            -------
    Workgroup            Master
    ---------            -------
unknown@LinuxMint ~ $

Newbie_from_NJ
Level 2
Level 2
Posts: 59
Joined: Mon Aug 11, 2014 6:31 pm

Re: Can Access SMB from WIndows, But Cannot from Linux

Postby Newbie_from_NJ » Tue Oct 31, 2017 12:26 am

If it helps, I'm able to SSH into LibreElec without issues....

Newbie_from_NJ
Level 2
Level 2
Posts: 59
Joined: Mon Aug 11, 2014 6:31 pm

Re: Can Access SMB from WIndows, But Cannot from Linux

Postby Newbie_from_NJ » Tue Oct 31, 2017 1:31 am

I'm making progress, but there's still something wrong. I now can access SMB shares via file browser smb://10.0.x.xx/
However, sometimes it works and sometimes it doesn't and sometimes it's very slow to load a folder. See attached images of the errors I've received so far.

Here are the changes I made to /etc/samba/samba.conf in order to gain access:

Code: Select all

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
   server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
#   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

### This is the change I did that should allow you to connect to SMB shares using SMB2
   server min protocol = SMB2_10
   client min protocol = SMB2
   client max protocol = SMB3

#### Networking ####


Return to “Other networking topics”