I wouldn't recommend Samba for this use case. The way it does permissions
is like it's been grafted on from a Windows world. Fine for NAS stuff. But for editing system files, is look into an SFTP or SSH GUI client for macOS.
Also, SELinux requires dirs/files labeled with samba_share_t which is not how any system files should be labeled.
Chris Murphy