I'm setting up a new domain controller for the first time. Where is the data for dns, users, and groups kept? Is there a file? If so where are these files located and what are they named? -- Bob Wooldridge EDM Incorporated http://www.edm-inc.com
On Mon, 3 Dec 2018 09:59:21 -0600 Bob Wooldridge via samba <samba at lists.samba.org> wrote:> I'm setting up a new domain controller for the first time. Where is > the data for dns, users, and groups kept? Is there a file? If so > where are these files located and what are they named? >It depends on whether you are using OS Samba packages or compiling Samba yourself. If OS packages, it depends on the OS. If self-compiled, it depends on the configure PREFIX option. It ultimately boils down to /path/to/private/sam.ldb Can I ask why you need to know ? Rowland
Am 03.12.18 um 16:59 schrieb Bob Wooldridge via samba:> I'm setting up a new domain controller for the first time. Where is the > data for dns, users, and groups kept? Is there a file? If so where are > these files located and what are they named?/var/lib/samba /var/lib/samba/private at least with distribution packages
On 12/3/18 5:45 PM, Reindl Harald via samba wrote:> /var/lib/samba > /var/lib/samba/private > > at least with distribution packagesAt least with *your* distribution's packages. With *my* distribution's packages, that's /var/db/samba4 /var/db/samba4/private Since we don't know the OP's OS, he'd better check. bye av.
On Mon, 3 Dec 2018 10:58:04 -0600 Bob Wooldridge <bob.wooldridge at edm-inc.com> wrote:> -------- Original Message -------- > Subject: Re: [Samba] Data Locations > From: Rowland Penny via samba <samba at lists.samba.org> > To: samba at lists.samba.org > Date: 12/03/2018 10:40 AM > > > > It depends on whether you are using OS Samba packages or compiling > > Samba yourself. > > If OS packages, it depends on the OS. > > If self-compiled, it depends on the configure PREFIX option. > > > > It ultimately boils down to /path/to/private/sam.ldb > Thanks for the info. I'm using Debian so that file is located at > /var/lib/samba/secrets/sam.ldb > However, the date and size of that file does not change after I add > an entry. In fact, there's nothing in the private directory that > seems to change. Is there another place I should look?'look' as in 'oh, thats where they are' ? If so, then yes, try: ls /var/lib/samba/private/sam.ldb.d Do not change anything in there, also search or modify via /var/lib/samba/private/sam.ldb> > > > Can I ask why you need to know ? > I just like to know where things are. It may come in handy with > troubleshooting and of course, backing up the file manually might be > important.Do not just backup Samba in that way, use a version of Samba from 4.9.0 onwards and use the new samba-tool backup & restore tools. Rowland
On Mon, 3 Dec 2018 12:12:31 -0600 Bob Wooldridge <bob.wooldridge at edm-inc.com> wrote:> -------- Original Message -------- > Subject: Re: [Samba] Data Locations > From: Rowland Penny via samba <samba at lists.samba.org> > To: samba at lists.samba.org <samba at lists.samba.org> > Date: 12/03/2018 11:44 AM > > 'look' as in 'oh, thats where they are' ? If so, then yes, try: > > ls /var/lib/samba/private/sam.ldb.d > Ok, yes, that seems to be where the changes are made. Is there a > relationship to the sam.ldb file? > > > > Do not change anything in there, also search or modify > > via /var/lib/samba/private/sam.ldb > I see with the ldbedit tool that this file appears to be up to date. > > > > Do not just backup Samba in that way, use a version of Samba from > > 4.9.0 onwards and use the new samba-tool backup & restore tools. > I'm using the samba package in the current Debian stable which is > samba 4.5.12. Is there a different backup tool for this version? >Yes, but to be honest, it isn't the best option and there isn't a restore tool. Can I suggest you consider the Samba packages from here: http://apt.van-belle.nl/ Rowland
Mandi! Bob Wooldridge via samba In chel di` si favelave...> I'm setting up a new domain controller for the first time. Where is the > data for dns, users, and groups kept? Is there a file? If so where are > these files located and what are they named?Anyway, packaged or self-compiled: samba -b | tr -d ' ' | egrep '^(STATE|PRIVATE_)DIR:' -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)