How to edit "smb.conf" - Apple Community
Can /etc/samba/smb.conf actually be manually edited?
Change smb.conf - General Support - LibreELEC Forum
How to edit smb.conf?
Videos
From various results (including from this subreddit) it seems like smb.conf can be manually edited and I would expect it to be if some setting isn't exposed via the GUI.
However inside the file the top-most comment says it's auto-generated by OMV and WARNING: Do not edit this file, your changes will be lost.
This is via SSH under a non-privileged user on OMV.
Is the comment just boilerplate text or actually relevant? Are there any gotchas or is there somewhere else that manual Samba setting changes are meant to be?
Restarting just the service seems like an improvement on rebooting. Even better still is to make use of the config reload that comes with many linux services, including Samba. This feature is often accessed with a SIGHUP signal or via a control program.
Use smbcontrol (man page) to reload the config with the lowest downtime and lowest-possible impact on services already using your shares. So, just run this:
smbcontrol smbd reload-config
You have the name of the service wrong. Try:
# systemctl restart smb.service
# systemctl restart nmb.service
I've been trying for a couple of weeks to share an SSD drive connected externally by USB to an old laptop running Linux Mint. I'm making progress little by little. The goal is to recover my data by connecting from the Windows PC. The drive was originally an internal drive in the Windows 10 desktop but during a power outage, suffered a corrupt partition rendering it unreadable by Windows. I discovered it is readable when connected as an external drive to the Linux laptop. I'm finally able to see the laptop in the network and add the SSD as a mapped drive, but I get a credentials prompt with the Linux user name, but the password does not work. What do I need to add to the smb.conf to be able to connect? I ran testparm and can post the results, but being a noob I really can't interpret it.
Edits added to the smb.conf:
[Downloads]
path = /media/johnny/Downloads
available = yes
valid users = johnny
read only = no
browsable = yes
public = yes
writable = yes