Forum
[SOLVED] Changing WORKGROUP - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: [SOLVED] Changing WORKGROUP (/thread-2185.html)



[SOLVED] Changing WORKGROUP - Skywatch - 17th Mar, 2014 02:48 AM

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


RE: Changing WORKGROUP - CurlyMo - 17th Mar, 2014 07:45 AM

Edit:
/etc/hosts
/etc/samba/smb.conf


RE: Changing WORKGROUP - Skywatch - 17th Mar, 2014 09:00 PM

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.


RE: Changing WORKGROUP - mk01 - 17th Mar, 2014 09:16 PM

@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.


RE: Changing WORKGROUP - Skywatch - 17th Mar, 2014 10:56 PM

Thanks mk01, I learn something new all the time!


Skywatch Smile