11-05-2022, 10:50 AM
(11-03-2022, 04:19 PM)Tim Curtis Wrote:(11-03-2022, 02:57 PM)TheOldPresbyope Wrote: @rph-r
@Tim Curtis
OK, I found the bug that causes the behavior I reported in my post #70
In /var/www/sys-config.php there's this nugget
Code:// SMB
if (isset($_POST['update_fs_smb'])) {
if (isset($_POST['fs_smb']) && $_POST['fs_smb'] != $_SESSION['fs_smb']) {
phpSession('write', 'fs_smb', $_POST['fs_smb']);
submitJob('fs_smb', $_POST['fs_nfs'], 'Settings updated', '');
}
}
That last line (line 265 in my file) should be
Code:submitJob('fs_smb', $_POST['fs_smb'], 'Settings updated', '');
With this fix the SMB file sharing service is reliably accessible from my LAN when it's supposed to be.
I'd be interested to hear if making this fix affects the behaviors reported by others on this thread, some of which I still haven't figured out.
Regards,
Kent
It prolly was the root cause.
This bug results in the SMB on/off setting using the NFS on/off setting thus if NFS is off then SMB will also always be off even when the toggle is ON :-0
It's fixed for upcoming 8.2.3 but in the meantime here's a patch for that php file. Just paste it at the command prompt and then restart the servers.
Code:# Command to patch the file
sudo sed -i s"/submitJob('fs_smb', \$_POST\['fs_nfs'\]/submitJob('fs_smb', \$_POST\['fs_smb'\]/" /var/www/sys-config.php
# Restart servers
moodeutl -r
it's working for me! thank you