sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf
... workgroup = MSHOME ...
workgroup = new_domain_or_workgroup
sudo testparm sudo /etc/init.d/samba restart