[CentOS] Can't access Samba shares from Nautilus

Fri Oct 19 08:30:26 UTC 2018
Nicolas Kovacs <info at microlinux.fr>

Hi,

I'm currently experimenting with Samba on a few sandbox machines.

On the server side, I have setup CentOS 7 with a basic Samba setup and
two shares, one public, the other password-protected.

I have two Windows 7 boxes in my network, and I can access the shares
perfectly, log in to the password-protected share, read and write files,
so this seems to work OK.

On my main Linux workstation (CentOS 7 + custom GNOME) I can't seem to
access these shares. When I click on the "Parcourir le réseau" ("Browse
network") icon in GNOME, Nautilus opens and shows a "Réseau Windows"
("Windows network") icon. Clicking on this icon, I only get the
following error message: "Impossible d'accéder à l'emplacement". Unable
to access this place.

So I fire up GNOME Terminal and see what this looks like on the command
line :

[kikinovak at alphamule:~] $ smbclient -L //amandine -N
Anonymous login successful

Sharename       Type      Comment
---------       ----      -------
Public          Disk      Partage Public
Confidentiel    Disk      Partage Confidentiel
IPC$            IPC       IPC Service (Serveur de fichiers AMANDINE)
Reconnecting with SMB1 for workgroup listing.
Anonymous login successful

Server               Comment
---------            -------

Workgroup            Master
---------            -------
WORKGROUP            AMANDINE

So far, so good. Now I try to connect as a user:

[kikinovak at alphamule:~] $ smbclient //amandine/Confidentiel -U kikinovak
Enter SAMBA\kikinovak's password:
Try "help" to get a list of possible commands.
smb: \> dir
  .                       D        0  Fri Oct 19 09:45:37 2018
  ..                      D        0  Fri Oct 19 08:47:34 2018
  Lighthouse.jpg          N   561276  Tue Jul 14 07:32:31 2009
  Jellyfish.jpg           N   775702  Tue Jul 14 07:32:31 2009
  Desert.jpg              N   845941  Tue Jul 14 07:32:31 2009
  Koala.jpg               N   780831  Tue Jul 14 07:32:31 2009
  Hydrangeas.jpg          N   595284  Tue Jul 14 07:32:31 2009
  Tulips.jpg              N   620888  Tue Jul 14 07:32:31 2009
  Penguins.jpg            N   777835  Tue Jul 14 07:32:31 2009
  Chrysanthemum.jpg       N   879394  Tue Jul 14 07:32:31 2009
  149030696 blocks of size 1024. 139929224 blocks available
smb: \>

This also looks good. Now let's check what Samba-related packages are
installed on my workstation:

[kikinovak at alphamule:~] $ rpm -qa | grep samba
samba-client-libs-4.7.1-6.el7.x86_64
samba-client-4.7.1-6.el7.x86_64
samba-common-4.7.1-6.el7.noarch
samba-common-libs-4.7.1-6.el7.x86_64
[kikinovak at alphamule:~] $ rpm -qa | grep gvfs
gvfs-mtp-1.30.4-5.el7.x86_64
gvfs-smb-1.30.4-5.el7.x86_64
gvfs-afp-1.30.4-5.el7.x86_64
gvfs-client-1.30.4-5.el7.x86_64
gvfs-1.30.4-5.el7.x86_64
gvfs-archive-1.30.4-5.el7.x86_64
gvfs-goa-1.30.4-5.el7.x86_64
gvfs-fuse-1.30.4-5.el7.x86_64
gvfs-gphoto2-1.30.4-5.el7.x86_64
gvfs-afc-1.30.4-5.el7.x86_64

Any idea what's missing here or why this doesn't work as expected ?

Cheers from the sunny South of France,

Niki

-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Site : https://www.microlinux.fr
Blog : https://blog.microlinux.fr
Mail : info at microlinux.fr
Tél. : 04 66 63 10 32