From: Gabriel Burgos Informática on
Hi,

I have to migrate a samba 3.0.14a to 3.0.28a, Can anybody tell me what are the necessary steps to work?
I followed this steps *, but it didn´t work, my smbpasswd not work at all, and when I see samba users with the samba server´s configuration utility(graphic utility by Tammy Fox) I only see 4 users of the 500 existing in the old server. I would appreciate any answer. I attach my smb.conf

*
First I migrated linux users.

ubuntu.old:~# mkdir /root/migracion/

ubuntu.old:~# export UGIDLIMIT=1000

ubuntu.old:~# awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=29999)' /etc/passwd > /root/migracion/passwd.mig

ubuntu.old:~# awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=29999)' /etc/group > /root/migracion/group.mig

ubuntu.old:~# awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=29999) {print $1}' /etc/passwd | tee - |egrep -f - /etc/shadow > /root/migracion/shadow.mig

ubuntu.old:~# cp /etc/gshadow /root/migracion/gshadow.mig

Backup Linux User´s Home

ubuntu.old:~# tar -zcvpf /root/migracion/home.tar.gz /home

nuevo.linux.:~# cd /root/migracion/
nuevo.linux.:~# cat passwd.mig >> /etc/passwd
nuevo.linux.:~# cat group.mig >> /etc/group
nuevo.linux.:~# cat shadow.mig >> /etc/shadow
nuevo.linux.:~# /bin/cp gshadow.mig /etc/gshadow

nuevo.linux.:~# tar -zxvf /root/migracion/home.tar.gz

nuevo.linux.:~# shutdown -r now

Then I migrated Samba (I think the problem is here)

I coppied files from /etc:

Passwd
Group
Gshadow
Shadow

Then i coppied this files /etc/samba :
smb.conf
passw
Group
Gshadow
Smbusers

Also secrets.tdb from:
/var/lib/samba/secrets.tdb


Thanks Gabriel.