Le Thu, 8 Oct 2020 13:09:37 -0300 Elias Pereira <empbilly at gmail.com> ?crivait:> > On Thu, Oct 8, 2020 at 12:20 PM Emmanuel Florac via samba < > > samba at lists.samba.org> wrote: > > > > Hello, > > > > I have an old 3.6 server to be replaced with a new 4.9 one. They are > > standalone, using tdbsam backend. > > > > I copied system users and group, then /var/lib/samba/*.tdb from the > > old to the new one. However, obviously the newer samba absolutely > > doesn't care about my old user database. "pdbedit -L" returns > > nothing on the new server. > > > > Is there some upgrade step I'm missing here? > > > > thank you, > > Hello Emmanuel, > > Migrating a Samba NT4 Domain to Samba AD (Classic Upgrade) > https://wiki.samba.org/index.php/Migrating_a_Samba_NT4_Domain_to_Samba_AD_(Classic_Upgrade) >Hi Elias, But it's not a domain, no LDAP, no AD. Just a standalone server, migrating to another standalone server. Should I do something using Samba tool? -- ------------------------------------------------------------------------ Emmanuel Florac | Direction technique | Intellique | <eflorac at intellique.com> | +33 1 78 94 84 02 ------------------------------------------------------------------------ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 163 bytes Desc: Signature digitale OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20201008/22c67533/attachment.sig>
On 08/10/2020 17:25, Emmanuel Florac via samba wrote:> But it's not a domain, no LDAP, no AD. Just a standalone server, > migrating to another standalone server. Should I do something using > Samba tool?No, samba-tool is only used with AD. As far as I am aware, the standalone server hasn't changed that much between 3.6 and 4.9 (both of which are EOL as far as Samba is concerned), so your method probably should have worked. What OS are you using ? Have you checked the file ownership on the files you copied ? What is in your smb.conf ? I take it that it isn't so much getting Samba to work, it is the file ownership. Rowland
Le Thu, 8 Oct 2020 17:37:38 +0100 Rowland penny via samba <samba at lists.samba.org> ?crivait:> On 08/10/2020 17:25, Emmanuel Florac via samba wrote: > > But it's not a domain, no LDAP, no AD. Just a standalone server, > > migrating to another standalone server. Should I do something using > > Samba tool? > > No, samba-tool is only used with AD. > > As far as I am aware, the standalone server hasn't changed that much > between 3.6 and 4.9 (both of which are EOL as far as Samba is > concerned), so your method probably should have worked. > > What OS are you using ?Debian, the old server running Debian 7 and the new one Debian 10 (current stable).> Have you checked the file ownership on the files you copied ?Yes, they belong to root, 600 access rights on both systems.> What is in your smb.conf ? > > I take it that it isn't so much getting Samba to work, it is the file > ownership.The smb.conf are quite different, because the old one doesn't work out of the box with the new machine. The main differences are: old box: winbind separator = + winbind enum users = yes winbind enum groups = yes winbind cache time = 10 idmap uid = 10000-20000 idmap gid = 10000-20000 (no idmap or winbind custom settings on the new one) Old box : unix password sync = false New: unix password sync = true Maybe that's the culprit? I don't really know what this setting does. -- ------------------------------------------------------------------------ Emmanuel Florac | Direction technique | Intellique | <eflorac at intellique.com> | +33 1 78 94 84 02 ------------------------------------------------------------------------ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 163 bytes Desc: Signature digitale OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20201008/bd346a5e/attachment.sig>