On 14/09/2017 11:04, Rowland Penny via samba wrote:> On Thu, 14 Sep 2017 10:49:48 -0300 > Flávio Silveira via samba <samba at lists.samba.org> wrote: > >> >> On 14/09/2017 10:20, Rowland Penny via samba wrote: >>> On Thu, 14 Sep 2017 09:32:21 -0300 >>> Flávio Silveira via samba <samba at lists.samba.org> wrote: >>> >>>> Hi! >>>> >>>> Just to confirm, I don't think there is a way to test if ntp is >>>> setup properly, right? >>>> >>>> Moving forward to Winbindd config as describe here: >>>> https://wiki.samba.org/index.php/Configuring_Winbindd_on_a_Samba_AD_DC >>>> >>>> It seems I just need to edit nsswitch.conf and add winbind to >>>> passwd and group databases, correct? >>> Provided you are using packages and have installed the required >>> packages, you only need to alter /etc/nsswitch.conf, so the next >>> question is, what packages have you installed ? >>> >> I've checked my dpkg.log and it gives me this list when I installed >> samba: >> >> libwbclient0:amd64 2:4.6.7+dfsg-1nmu1~deb9 >> samba-common:all 2:4.6.7+dfsg-1nmu1~deb9 >> libtevent0:amd64 0.9.31-1 >> libc-bin:amd64 2.24-11+deb9u1 >> systemd:amd64 232-25+deb9u1 >> man-db:amd64 2.7.6.1-2 >> samba-libs:amd64 2:4.6.7+dfsg-1nmu1~deb9 >> samba-vfs-modules:amd64 2:4.6.7+dfsg-1nmu1~deb9 >> python-samba:amd64 2:4.6.7+dfsg-1nmu1~deb9 >> libsmbclient:amd64 2:4.6.7+dfsg-1nmu1~deb9 >> smbclient:amd64 2:4.6.7+dfsg-1nmu1~deb9 >> samba-common-bin:amd64 2:4.6.7+dfsg-1nmu1~deb9 >> samba-dsdb-modules:amd64 2:4.6.7+dfsg-1nmu1~deb9 >> winbind:amd64 2:4.6.7+dfsg-1nmu1~deb9 >> samba:amd64 2:4.6.7+dfsg-1nmu1~deb9 >> >> Does this help? > well possibly, but I will rephrase my question, are: > > libpam-winbind libpam-krb5 libnss-winbind > > installed ?Yes sir, all three are installed, should I proceed to editing nsswitch.conf as described on the tutorial?> Rowland >
On Thu, 14 Sep 2017 11:18:09 -0300 Flávio Silveira via samba <samba at lists.samba.org> wrote:> > > On 14/09/2017 11:04, Rowland Penny via samba wrote: > > On Thu, 14 Sep 2017 10:49:48 -0300 > > Flávio Silveira via samba <samba at lists.samba.org> wrote: > > > >> > >> On 14/09/2017 10:20, Rowland Penny via samba wrote: > >>> On Thu, 14 Sep 2017 09:32:21 -0300 > >>> Flávio Silveira via samba <samba at lists.samba.org> wrote: > >>> > >>>> Hi! > >>>> > >>>> Just to confirm, I don't think there is a way to test if ntp is > >>>> setup properly, right? > >>>> > >>>> Moving forward to Winbindd config as describe here: > >>>> https://wiki.samba.org/index.php/Configuring_Winbindd_on_a_Samba_AD_DC > >>>> > >>>> It seems I just need to edit nsswitch.conf and add winbind to > >>>> passwd and group databases, correct? > >>> Provided you are using packages and have installed the required > >>> packages, you only need to alter /etc/nsswitch.conf, so the next > >>> question is, what packages have you installed ? > >>> > >> I've checked my dpkg.log and it gives me this list when I installed > >> samba: > >> > >> libwbclient0:amd64 2:4.6.7+dfsg-1nmu1~deb9 > >> samba-common:all 2:4.6.7+dfsg-1nmu1~deb9 > >> libtevent0:amd64 0.9.31-1 > >> libc-bin:amd64 2.24-11+deb9u1 > >> systemd:amd64 232-25+deb9u1 > >> man-db:amd64 2.7.6.1-2 > >> samba-libs:amd64 2:4.6.7+dfsg-1nmu1~deb9 > >> samba-vfs-modules:amd64 2:4.6.7+dfsg-1nmu1~deb9 > >> python-samba:amd64 2:4.6.7+dfsg-1nmu1~deb9 > >> libsmbclient:amd64 2:4.6.7+dfsg-1nmu1~deb9 > >> smbclient:amd64 2:4.6.7+dfsg-1nmu1~deb9 > >> samba-common-bin:amd64 2:4.6.7+dfsg-1nmu1~deb9 > >> samba-dsdb-modules:amd64 2:4.6.7+dfsg-1nmu1~deb9 > >> winbind:amd64 2:4.6.7+dfsg-1nmu1~deb9 > >> samba:amd64 2:4.6.7+dfsg-1nmu1~deb9 > >> > >> Does this help? > > well possibly, but I will rephrase my question, are: > > > > libpam-winbind libpam-krb5 libnss-winbind > > > > installed ? > > Yes sir, all three are installed, should I proceed to editing > nsswitch.conf as described on the tutorial? > > > Rowland > > > >Yes, you should now get a result from 'getent passwd ausername' Rowland
On 14/09/2017 12:46, Rowland Penny via samba wrote:> >>> well possibly, but I will rephrase my question, are: >>> >>> libpam-winbind libpam-krb5 libnss-winbind >>> >>> installed ? >> Yes sir, all three are installed, should I proceed to editing >> nsswitch.conf as described on the tutorial? >> >>> Rowland >>> >> > Yes, you should now get a result from 'getent passwd ausername' > > Rowland >Thanks Rowland, below is the edited /etc/nsswitch.conf: # /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # If you have the `glibc-doc-reference' and `info' packages installed, try: # `info libc "Name Service Switch"' for information about this file. passwd: compat winbind group: compat winbind shadow: compat gshadow: files hosts: files dns networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis And here is the output of "getent passwd fsilveira": root at dc1:~# getent passwd fsilveira fsilveira:x:1001:1001::/home/fsilveira:/sbin/nologin root at dc1:~# About the file serving here: https://wiki.samba.org/index.php/Samba_File_Serving Should I use the "Setting up a share using Windows ACLs" tutorial?