Change Workgroup in Ubuntu 7.04?

I have recently set up Ubuntu 7.04 on my windows home network. Ubuntu can see the windows systems and read from them, but the reverse is not possible. Plus I can't change the Ubuntu workgroup name to the Windows name. I'm really new to Linux, if anybody could help out I'd be thankful.

Changing workgroup in Ubuntu 7.04


  • You can change the workgroup in a file called "smb.conf" located in "/etc/samba/" directory
  • Go to the menu Applications and select the Terminal application:

Applications > Accessories > Terminal

  • Type:

sudo vim /etc/samba/smb.conf

  • Enter password when required
  • Scroll down till you find the Global Settings section and look for workgroup, then press on the INSERT key on your keyboard (to edit the text) and enter your workgroup (the Windows one: e.g. MSHOME or HOME or MYNETWORK)
  • Finally, press "SHIFT" and ":" and then type wq (to write and save the smb.conf file) and press Enter
  • Reboot the computer for the change to be effective.
  • That's it, you're done!