Forum

Full Version: [SOLVED] Changing WORKGROUP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I changed the workgroup name to match my network in XBMC under Xbian but no luck.

I tried going into samba.conf (via ssh) and it won't allow me to change the setting.

I tried sudo xbian-config to see if there's an answer there, nothing.

I even tried sudo net -w workgroupname and still no go.

What am i doing wrong please?

Skywatch
Edit:
/etc/hosts
/etc/samba/smb.conf
Thanks CurlyMo!

The first one didn't show anything but the second option did.

Now I have a question though. How come changing the smb.conf works via SSH and not via SCP? With SCP I just got a message that I wasn't allowed to change the file even though it was exactly the same machine logging in with the same user, same public key and same password.

Also, it states clearly that this file (smb.conf) should not be edited and to use 'net' to change parameters, so how come that didn't work (or did i misunderstand something?).

S.
@Skywatch

yes, smb.conf is base template and is obliged to changes with xbian-package-samba package changes. it's nice to see users read # comments too Smile

for runtime parameters not configurable via "net" you are free to use /etc/samba/user.conf. this file will not be touched and can re-define global parameters already found in smb.conf.
(I will update the comment to reflect the user.conf availability)

so just put
Code:
[global]
workgroup = NOTWORKGROUP

in that file.

you can check the actual seen and used smb configuration with
Code:
testparm -v

it will show you the workgroup is no more WORKGROUP but the name you define.
Thanks mk01, I learn something new all the time!


Skywatch Smile
Reference URL's