[Samba] R: R: R: cannot list/access samba share from Windows client

Rowland Penny rpenny at samba.org
Mon Jan 8 20:41:25 UTC 2018


On Mon, 8 Jan 2018 20:55:22 +0100
Andrea Rossetti <andy.ros at gmail.com> wrote:

> I’ve re-changed
> 
> root at SRVLNXWINTRA01:/home/data# nano /etc/samba/smb.conf
> 
> idmap config COM_SPOLETO : backend = ad
> to
> idmap config COM_SPOLETO : backend = rid
> 
> root at SRVLNXWINTRA01:/home/data# systemctl restart smbd nmbd winbind
> root at SRVLNXWINTRA01:/home/data# net cache flush
> root at SRVLNXWINTRA01:/home/data# systemctl restart smbd nmbd winbind
> root at SRVLNXWINTRA01:/home/data# getent group "com_spoleto\\domain
> admins" root at SRVLNXWINTRA01:/home/data# getent passwd
> com_spoleto\\andrea.rossetti
> 
> Nothing changed!!! ☹ ☹
> 

I changed the 'idmap config' block on my computer to this:

    idmap config *:backend = tdb
    idmap config *:range = 2000-9999
    idmap config SAMDOM : backend = rid
    idmap config SAMDOM : range = 10000-999999

Restarted smbd, nmbd and winbind, then:

root at devstation:~# net cache flush
root at devstation:~# getent passwd samdom\\rowland
rowland:*:11107:10513:Rowland Penny:/home/rowland:/bin/bash

root at devstation:~# getent group "samdom\\domain admins"
domain admins:x:10512:administrator,swanadmin,rowland

As you can see, it works ;-)

If it isn't working for you, you must have something misconfigured or
something missing, What do you have in /etc/hostname, /etc/hosts
and /etc/resolv.conf ?
What packages did you install with the Samba packages ? (note: not the
base OS packages, the packages installed when you installed Samba)

Rowland



More information about the samba mailing list