This post was most recently updated on December 11th, 2018
Change workgroup & server string:
Server string is the comment part of the Network name, by default it is something like samba xx. xx x. After change of the server string, it could take a while before the new comment is seen because this part has been written to windows registry.
If you make the changes in the “smb_anonymous_head.conf”, it will work fine. After each reboot this file is the base for smb_anonymous.conf, and again this is the base for smb.conf. After each reboot the last two file are rewritten.
>>Warnings:
Linux is case sensitive.
Use of the vi-editor could lead to corrupt files if you are not used to vi. So always make a spare copy before you edit a file, or practice on a new empty file first.
(telnet to the PlayOnHD)
C:\> telnet 192.168.23.40
PlayonHD login: root
warning: cannot change to home directory
BusyBox v1.1.3 (2009.10.29-07:51+0000) Built-in shell (ash)
Enter ‘help’ for a list of built-in commands.
/ # find / -name smb.conf
/tmp/netb/smb.conf
/tmp/hdd/root/samba/lib/smb.conf
/ #
/ # cd /tmp/hdd/root/samba/lib
/tmp/hdd/root/samba/lib #
/tmp/hdd/root/samba/lib # ls -l
-rw-r–r– 1 root root 611 Sep 18 14:21 smb.conf
-rw-r–r– 1 root root 611 Sep 18 14:21 smb_anonymous.conf
-rw-r–r– 1 root root 453 Nov 3 2009 smb_anonymous_head.conf
-rw-r–r– 1 root root 562 Sep 18 14:21 smb_user.conf
-rw-r–r– 1 root root 405 May 13 2009 smb_user_head.conf
/tmp/hdd/root/samba/lib #
(make a copy)
/tmp/hdd/root/samba/lib # cp smb_anonymous_head.conf smb_anonymous_head.old
/tmp/hdd/root/samba/lib #
( Na Esc i = insert , x = delete character , dd = delete line )
( Na Esc : wq = write & quit , q! = do not save and quit )
/tmp/hdd/root/samba/lib # vi smb_anonymous_head.conf
[global]
security=share
log file=/usr/local/samba/var/log.%m
max log size=2000
domain logons=Yes
dns proxy=No
use sendfile=yes
guest account=root
encrypt passwords=yes
passdb backend=smbpasswd
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
read raw=yes
write raw=yes
oplocks=yes
max xmit=65535
dead time=15
getwd cache=yes
lpq cache=30
read prediction=yes
client NTLMv2 auth=yes
go to the end of the line [global]
press ‘i’
press
workgroup = BENELUX
server string = Multimedia
press ‘Esc’
press ‘:’
you will see at the bottom of your screen :
:wq (write & quit)
(check before reboot)
/tmp/hdd/root/samba/lib #
/tmp/hdd/root/samba/lib # more smb_anonymous_head.conf
[global]
workgroup = BENELUX
server string = Multimedia
security=share
log file=/usr/local/samba/var/log.%m
max log size=2000
domain logons=Yes
dns proxy=No
use sendfile=yes
guest account=root
encrypt passwords=yes
passdb backend=smbpasswd
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
read raw=yes
write raw=yes
oplocks=yes
max xmit=65535
dead time=15
getwd cache=yes
lpq cache=30
read prediction=yes
client NTLMv2 auth=yes
>> if case of any mistakes copy the .old file back to .conf <<
/tmp/hdd/root/samba/lib #
/tmp/hdd/root/samba/lib # reboot
UPDATE:
/usr/local/etc/package/samba/lib/smb.conf – latest release (3582)
If you have fw release 3582 installed, want to change workgroup in whatever. Just edit smb_anonymous_head.conf in the ‘/usr/local/etc/package/samba/lib/’ directory.
So the howto is the same, only the directory is changed.