This brief and simple tutorial shows you how to change workgroup name in Ubuntu so that you can join a domain or another workgroup. This guide should be quick and easy. If you want to join a domain or workgroup that is different from your current workgroup, you must change the workgroup name, and this tutorial will show you how to do it in Samba’s smb.conf file.
To get started, press Ctrl – Alt – T on your keyboard to open Terminal.
Next, type the command below to open Samba smb.conf file.
gksu gedit /etc/samba/smb.conf
Then look for the highlighted line shown below and replace ‘WORKGROUP’ with whatever workgroup name you want to join and save the file.
When you’re done, type the command below to restart Samba Services.
sudo /etc/init.d/smbd restart