← Back to team overview

enterprise-support team mailing list archive

Re: [Question #200186]: Can someone write a simple script to link to windows workgoup?

 

Question #200186 on samba in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/samba/+question/200186

actionparsnip proposed the following answer:
Simple, just modify /etc/samba/smb.conf

You will change this line:

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

To the workgroup you want to be part of, you can use sed to change it
like so:

sed -i 's/WORKGROUP/MSHOME/g' /etc/samba/smb.conf

This will switch you from the WORKGROUP workgroup to MSHOME workgroup.
There is only one occurrence of the word WORKGROUP (in caps) so the sed
command will fly. You may need to reboot to apply, not sure how the
setting is used.

-- 
You received this question notification because you are a member of
Ubuntu Server/Client Support Team, which is an answer contact for samba
in Ubuntu.