Below you will find the steps you must do if you want to change your workgroup (domain) name in order to join another domain in your network.

  • Open up a terminal ( crtl + alt + T )
    sudo emacs /etc/samba/smb.conf
  • Locate the lines you must edit:
    ## Browsing/Identification ###
    
    # Change this to the workgroup/NT-domain name your Samba server will part of
    	workgroup = HOME
  • Change HOME to the new domain/workgroup name you want
  • Save and Close the file
  • In order for the changes to be applied we must restart our samba server:
    sudo /etc/init.d/smbd restart

Finished :P