Paulo Bernardo Lindoso (Yahoo)
2003-Oct-07 19:59 UTC
[Samba] [URGENT! PLZ HELP!] Problems when moving a Samba installation from one Linux box to another
Hello all, We just bought a new server to migrate our Samba installation, but we are facing some problems with it. Both machines run Samba 2.2.7 configured as PDC for our domain. When migrating, I copied /etc/samba/smb.conf and smbpasswd, and adjusted smb.conf to listen to the new server's IP address. Now all users can log on to the domain and access the Samba shares, but no-one can access shares created from the workstations, either file ou print shares... Running through all files, I realised that I recreated all user and computer accounts in /etc/passwd but the UserIDs obviously won't match the migrated "smbpasswd": for instance, user "haydee" has userid 514 in /etc/passwd and userid 1007 in /etc/samba/smbpasswd.... I tried to change the UserID field in smbpasswd but to no avail. Is there any simple hack to fix this or do I have to recreate all accounts, take off all machines from the domains and put them back again? Please help! :-) Thanks in advance, Paulo.
Nerijus Baliunas
2003-Oct-07 20:47 UTC
[Samba] [URGENT! PLZ HELP!] Problems when moving a Samba installation from one Linux box to another
On Tue, 07 Oct 2003 16:59:29 -0300 "Paulo Bernardo Lindoso (Yahoo)" <lindoso_paulo@yahoo.com.br> wrote:> Running through all files, I realised that I recreated all user and > computer accounts in /etc/passwd but the UserIDs obviously won't match > the migrated "smbpasswd": for instance, user "haydee" has userid 514 in > /etc/passwd and userid 1007 in /etc/samba/smbpasswd....You should have copied users and groups from old server's passwd, group, gshadow and shadow files to new (just copy whole lines). So please delete all your recreated users and do this. Regards, Nerijus P.S. Please do not use URGENT, it usually has opposite effect.