On Sun, 5 Mar 2017 16:04:10 +0100 Reindl Harald via samba <samba at lists.samba.org> wrote:> as you currently don't have a working as desired setup i would start > from scratch because you can't distinct between probably upgrade > related problems and others in your current stateThe OP does have a working setup, it just isn't working as he expected, probably because he hasn't set up libnss_winbind.> > normally purge the configs and *also* "/var/lib/samba" which contans > all the databases should bring you in a state like nothing tried > beforeThat will not work, mostly because the OP compiled Samba into the default location '/usr/local/samba' Rowland
Am 05.03.2017 um 16:15 schrieb Rowland Penny via samba:> On Sun, 5 Mar 2017 16:04:10 +0100 > Reindl Harald via samba <samba at lists.samba.org> wrote: > >> as you currently don't have a working as desired setup i would start >> from scratch because you can't distinct between probably upgrade >> related problems and others in your current state > > The OP does have a working setup, it just isn't working as he expected, > probably because he hasn't set up libnss_winbind.that's nitpicking - a wroking setup works as i expect :-) when working without packaging which would remove orphaned files proper start from scratch and "rm -rf" is better and in case of a retry i would start with a rpm-spec with %files pointing to /usr/local/samba/ because that makes upgrades / downgrades in the future cleaner instead a "make install">> normally purge the configs and *also* "/var/lib/samba" which contans >> all the databases should bring you in a state like nothing tried >> before > > That will not work, mostly because the OP compiled Samba into the > default location '/usr/local/samba'missed that - but must be the case because he refers to RHEL7/CentOS7 which ships with 4.4.4 and not 4.1.x - anyways, the tree brelow the install prefix is the same and the main part of the coniguration lives below the lib folder whereever it is located and so the point was just remove the configs itself won't reset completly
On Sun, 5 Mar 2017 16:30:00 +0100 Reindl Harald via samba <samba at lists.samba.org> wrote:> > > that's nitpicking - a wroking setup works as i expect :-)No, its not nitpicking, the OP has an AD DC that is working as recommended, but the OP wants to also use it as a fileserver, so he needs to configure it a bit more. The only problem he really has is, he used the wrong version of Samba.> > when working without packaging which would remove orphaned files > proper start from scratch and "rm -rf" is better and in case of a > retry i would start with a rpm-spec with %files pointing > to /usr/local/samba/ because that makes upgrades / downgrades in the > future cleaner instead a "make install"You can do what you like, but running 'make install' is just as easy as downloading the latest Samba tarball, compiling it into an RPM and then installing that RPM.> missed that - but must be the case because he refers to RHEL7/CentOS7 > which ships with 4.4.4 and not 4.1.x - anyways, the tree brelow the > install prefix is the same and the main part of the coniguration > lives below the lib folder whereever it is located and so the point > was just remove the configs itself won't reset completlyYou, being (by the sound of it) a Red-Hat user, will very well know that you cannot create an AD DC with Red-Hat packages yet, so, unless you configure it differently, Samba puts everything into /usr/local/samba Rowland