Moving Samba shares etc from one Fedora box to another - difficult ? Whats involved?

Presume same version of Fedora and Samba on both machines.
This is a test Im going to do to.

Ok presume the users on Fedora box 1 match those of box 2. I know they have to match.

What samba files have to be moved over?
Is it fairly straight forward?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

just /etc/samba should be enough
and also any specific users and groups you have set in passwd/groups
fcekAuthor Commented:

Ah ok. If I have made a "group" in Fedora it has to replicated on box 2.

and the smbusers file.
and a file called passwd ?
10 Holiday Gifts Perfect for Your Favorite Geeks

Still have some holiday shopping to do for the geeks in your life? While toys, clothing, games, and gift cards are still viable options for your friends and family, there’s more reason than ever to consider gadgets and software.

Yes, you can copy the line from the passwd/group files to the new box as long as the ids don't overlap, then when you rsync all your files the permissions match up correctly
fcekAuthor Commented:

Where is the passwd file?  I can see the otrher two.
You basically need to copy the config files.  This is the first step.  Make it up and running with exact same configuration.

To transfer these files you can use ftp or scp whichever you like.  To do that, at least one of the two machines have to implement ftp or ssh server.

You can also copy your files to a USB and then copy them from USB to the other machine.  SCP would be a lot easier.

So basically, if you get your smb.conf file, any other files, for example files in /etc/samba folder.

Next step is to create the users again.  I would not encourage your to copy /etc/passwd, /etc/shadow and /etc/group files.  You can do that but you risk losing some users (may be system users that you are not aware of) and may cause problems for you.

Then add those users to samba.

The last item is to copy the share files.  It should be simple scp or rsync command.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Only copy the users over id 500 then you should be safe as system users are usualy under 500
fcekAuthor Commented:

Thanks for the tips, will try this soon.
fcekAuthor Commented:

I hope to test this soon. No time to do yet
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.