Due to a recent SaMBa vulnerability CVE-2021-44142, I’d like to disable smbd on my GL-MT300N-V2 Mango:
root@GL-MT300N-V2:~# /usr/sbin/smbd --version
Version 3.6.25
The vulnerability exists prior to 4.13.17.
I tried disabling File Sharing in the Applications menu (and rebooting), to no effect. I’ve tried terminating and/or killing the smbd (and nmbd for good measure) process in the Advanced menu, also to no effect.
I’d prefer a way of doing this via the GUI, but I am also not afraid of deleting /etc/rc.d/S60samba if that’s what it takes.
(Currently running firmware 3.105, but I have checked the release notes for the later two stable releases 3.203 and 3.211 and don’t see anything about upgrading SaMBa.)
VFS fruit is for Apple/MacOS SMB clients, so it should be okay if you do not have that. I do not have a /etc/smb.conf file, only a /etc/config/samba file, which does not have any “vfs_object” lines anyway.
If anyone still wants to, you can just disable any /etc/rc.d startup or shutdown script just by renaming it without prefix of “S” (for Start) or “K” (for Kill).