Migrating Samba Configs from MDK 10 to Ubuntu 6.06

Asked by Tom Smith

I need to migrate several MDK (Mandrake) 10 servers over to Ubuntu 6.06.1 LTS. The most complicated portion of each of these servers is Samba--I'd like to migrate those accounts to the new servers without having to recreate each user account, neither Linux nor Samba.

Can someone offer some suggestions for doing this? I've found a little information for doing this, but nothing specific to Ubuntu.

I'm also curious of ways to minimize the headaches associated with such migrations--that is, is there a way to configure Samba (and its associated Linux user accounts) to make server-to-server moves easier?

(I know this is more of a Samba-related question than an Ubuntu one--I posted a similar question to the Samba list and only received a few responses, none of which really addressed the issues(s) at hand.)

Thanks in advance for your help!

~ Tom

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ralph Janke (txwikinger) said :
#1

Thanks for the question.

I am not sure that there would be a big of a problem. you should save the /etc/samba directory and put it in place in the Ubuntu installation. In most configurations that should be enough. Depending on how you do authentication of the users, you might also want to extract the list of samba accounts from the /etc/passwd file and write a small script that re-creates those accounts on the Ubuntu installation.

I would think this should pretty much be it (maybe some adjusting left if it not work perfectly).

I hope this helps.

Revision history for this message
Tom Smith (tom71713-ubuntu) said :
#2

No, I think it might be a bit more complicated than that.

My main concern are the user accounts. I've done some more digging and have what looks to be a reliable way of extracting user and group information from the current server... So this is good. However...

I don't yet know how to extract password information from the existing server. If I'm unable to do that, it will mean resetting everyone's password--and that would not be an ideal situation. Suggestions? Pointers to docs?

Thanks, Ralph, for your input.

Revision history for this message
Ralph Janke (txwikinger) said :
#3

How do you do the authentication? Are they done with smbpasswd? Those passwords are in a file in /etc/samba IIRC. This should be possible to copy over.

If the authentication is done via the normal account passwords it is certainly not easy to transfer this. In the long run you should think about doing the authentication via an ldap server.

I hope this helps.

Can you help with this problem?

Provide an answer of your own, or ask Tom Smith for more information if necessary.

To post a message you must log in.