Monday, October 14, 2013

samba Moving from one Linux server to another lunux server

Suppose you want to replace an existing samba server with a newer system. What steps are involved in this?


On the target system ensure samba is installed:

# yum install samba -y


Next, copy over the smb.conf and smbpasswd files:

# scp :/etc/samba/smb.conf /etc/samba/smb.conf

# scp :/etc/samba/smbpasswd /etc/samba/smbpasswd


Now, edit your smb.conf file and ensure you “netbios name” is correct for the new server.


Make sure smb service runs at startup:

# chkconfig smb on


Import the new smbpasswd file and verify there are no errors, if clean it will import all your users:

# pdbedit -i smbpasswd:smbpasswd


Lastly, start the smb service and test your client connections:

# service smb start


#chkconfig smb on



samba Moving from one Linux server to another lunux server

No comments:

Post a Comment