[Samba] Transplant VM samba to baremetal

Marco Gaiarin gaio at sv.lnf.it
Mon Aug 23 10:23:03 UTC 2021


Mandi! Rob Tho via samba
  In chel di` si favelave...

> I have successfully set up samba ad in a virtual environment and now wish
> to deploy in the real world.

Does the old and new domain have the same users and password (or can
have, indeed)?

If 'yes', at least using SMB1, you can also simply point the new domain
users to use the old domain/server (you can use IP '\\1.2.3.4\Share' to
try to force SMB1).

This does not solve your trouble, but at least can give you more time (eg,
instead of moving all data around in one turn, you can move one share
at a time).


Also, for file permission, if you use POSIX ACL (or, you don't have
complex ACL permission that are saved in POSIX Attributes), i think you
can simply dump ACL with getfacl and restore it with setfacl, or use
rsync with --acls; clearly also this if usernames matches.


I've not tested it, but if instead of login you can get to match
UID/GID from older to newer domain, you can user getfacl/setfacl or
rsync with some sort of '--numeric'.

-- 
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)



More information about the samba mailing list