Web lists-archives.com

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




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

> I’ve re-changed
> 
> root@SRVLNXWINTRA01:/home/data# nano /etc/samba/smb.conf
> 
> idmap config COM_SPOLETO : backend = ad
> to
> idmap config COM_SPOLETO : backend = rid
> 
> root@SRVLNXWINTRA01:/home/data# systemctl restart smbd nmbd winbind
> root@SRVLNXWINTRA01:/home/data# net cache flush
> root@SRVLNXWINTRA01:/home/data# systemctl restart smbd nmbd winbind
> root@SRVLNXWINTRA01:/home/data# getent group "com_spoleto\\domain
> admins" root@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@devstation:~# net cache flush
root@devstation:~# getent passwd samdom\\rowland
rowland:*:11107:10513:Rowland Penny:/home/rowland:/bin/bash

root@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

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba