[Samba] Moving users from a Samba 3.6 to 4.9 (tdb)
Emmanuel Florac
eflorac at intellique.com
Fri Oct 9 10:47:22 UTC 2020
Le Fri, 9 Oct 2020 08:58:40 +0200
"L.P.H. van Belle via samba" <samba at lists.samba.org> écrivait:
> Now, TP starter said.
> > I copied system users and group, then /var/lib/samba/*.tdb
>
> Here im pointing to the "users" and "groups"
> What exactly did you copy? Only the passwd and groups ?
> Did you make sure you only copied the UID/GIDS above 1000?
> Because the numbers below it do change per install.
>
> You also know there is a "shadow" file?
> Did you test if you can login with the copies users ( if allowed and
> needed )
>
> These are the important once..
> accounts: /etc/passwd
> passwords: /etc/shadow
> groups and memberships: /etc/group
> group passwords: /etc/gshadow
> /etc/samba/*
> /var/lib/samba/*
>
> This one has a good and valid set to move accounts.
> https://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
Yes, I've copied the users and groups over 1000 only. I didn't move
stuff from /etc/samba because there isn't anything but smb.conf, and
the old one doesn't work well with a more recent samba anyway :)
--
------------------------------------------------------------------------
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/20201009/4dd2007e/attachment.sig>
More information about the samba
mailing list