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

Andrea Rossetti andy.ros at gmail.com
Mon Jan 8 21:38:15 UTC 2018


>Da: Rowland Penny via samba
>Inviato: lunedì 8 gennaio 2018 21:42
>A: samba at lists.samba.org
>Oggetto: Re: [Samba] R: R: R: cannot list/access samba share from Windowsclient

>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 ;-)

I’ve done exactly as you (view /etc/samba/smb.conf below) but nothing changed!

>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 ?

root at SRVLNXWINTRA01:~# cat /etc/hostname
SRVLNXWINTRA01

root at SRVLNXWINTRA01:~# cat /etc/hosts
127.0.0.1       localhost
192.168.23.244  SRVLNXWINTRA01.comune.spoleto.local     SRVLNXWINTRA01

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

root at SRVLNXWINTRA01:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
search comune.spoleto.local
search comune.spoleto.local
nameserver 192.168.23.11
nameserver 192.168.23.12

>What packages did you install with the Samba packages ? (note: not the
>base OS packages, the packages installed when you installed Samba)

I used apt-get install samba

root at SRVLNXWINTRA01:~# dpkg -l | grep samba
ii  python-samba                          2:4.3.11+dfsg-0ubuntu0.16.04.12            amd64        Python bindings for Samba
ii  samba                                 2:4.3.11+dfsg-0ubuntu0.16.04.12            amd64        SMB/CIFS file, print, and login server for Unix
ii  samba-common                          2:4.3.11+dfsg-0ubuntu0.16.04.12            all          common files used by both the Samba server and client
ii  samba-common-bin                      2:4.3.11+dfsg-0ubuntu0.16.04.12            amd64        Samba common files used by both the server and the client
ii  samba-dsdb-modules                    2:4.3.11+dfsg-0ubuntu0.16.04.12            amd64        Samba Directory Services Database
ii  samba-libs:amd64                      2:4.3.11+dfsg-0ubuntu0.16.04.12            amd64        Samba core libraries
ii  samba-vfs-modules                     2:4.3.11+dfsg-0ubuntu0.16.04.12            amd64        Samba Virtual FileSystem plugins


--------------------------------------------------------------
My /etc/samba/smb.conf
# Global parameters
[global]
        workgroup = COM_SPOLETO
        realm = COMUNE.SPOLETO.LOCAL
        server string = %h server (Samba, Ubuntu)
        interfaces = lo ens32
        bind interfaces only = Yes
        server role = member server
        security = ADS
        map to guest = Bad User
        username map = /etc/samba/user.map
        kerberos method = secrets and keytab
        log file = /var/log/samba/log.%m
        max log size = 1000
        client signing = if_required
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d
        winbind refresh tickets = Yes
        idmap config com_spoleto : range = 10000-999999
        idmap config com_spoleto : backend = rid
        idmap config * : range = 2000-9999
        idmap config * : backend = tdb
        map acl inherit = Yes
        store dos attributes = Yes
        vfs objects = acl_xattr

[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

[share]
        comment = Progetti QGIS per Lizmap
        path = /home/data/share
        read only = No
        inherit acls = Yes


More information about the samba mailing list