MMCARN you can PM and give a account number: I´d like to pay for your help
If you insist,
make a donation to koozali...
looks like I´m on 27 version:
Yes; that was in the list of updates from your first post.
I downgraded my server (since I don't use samba...) and compared the templates between 2.4.0-24 and 2.4.0-27.
The only changed smb.conf templates are 11maxProtocol and 11smbPorts. I think 11maxProtocol was changed in 2.4.0-25 or 2.4.0-26.
If you run into any problems with 2.4.0.24 related to 'min protocol' or 'max protocol' (the parameters set by 11maxProtocol) your system might work ok if you re-install v2.0.4-27, then create a custom template for 11smbPorts with the old content:
mkdir -p /etc/e-smith/templates-custom/etc/smb.conf/
cd /etc/e-smith/templates-custom/etc/smb.conf/
echo '{
my $smb_ports = $smb{SMBPorts} || 139;
"smb ports = $smb_ports";
}' > 11smbPorts
expand-template /etc/samba/smb.conf
sv t smbd
sv t nmbd
Revert this customization using:
'rm' -f /etc/e-smith/templates-custom/etc/smb.conf/11smbPorts
expand-template /etc/samba/smb.conf
sv t smbd
sv t nmbd
While working on this I noticed that the samba templates are looking for config:smb:SMBPorts. I don't know how this interacts with config:smbd:TCPPorts, which controls the firewall - what would happen, for example, if the updated smb.conf uses port 445, but the firewall is blocking that traffic?
Here are my related config db settings:
* there is no entry for 'SMBPorts', which applies the default output - 'smb ports 139 445' in the new fragment, 'smb ports 139' in the old fragment.
# config show smb
smb=service
DeadTime=10080
KeepVersions=enabled
OpLocks=enabled
OsLevel=35
RecycleBin=enabled
RoamingProfiles=no
ServerName=office
ServerRole=PDC
ShadowCount=10
ShadowDir=/home/e-smith/files/.shadow
UnixCharSet=UTF8
UseClientDriver=yes
Workgroup=mmsi
status=enabled
* I'm showing "TCPPorts=139,445", but I don't know if that is a default set by SME at some point, or if I set it manually...
# config show smbd
smbd=service
TCPPorts=139,445
access=private
status=enabled