NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
q3d
Apr 28, 2025Aspirant
RN316 Samba Configuration files
Hi there,
I was looking at diagnosing a samba file share 'same files showing multiple times' when accessing a device (USB) on the ReadyNAS (RN316) that is samba shared (using OS 6.10.8 - stable).
In SSH the /etc/samba/smb.conf file has this order for the includes:
[global]
include = /etc/frontview/samba/smb.conf.defaults
...other settings..
include = /etc/frontview/samba/smb.conf.%a
include = /etc/frontview/samba/smb.conf.overrides
include = /etc/frontview/samba/Shares.conf
include = /etc/frontview/samba/Shares.conf.%G
include = /etc/frontview/samba/addons/addons.conf
include = /run/usb/samba/Shares.conf
include = /etc/frontview/samba/timemachine.conf
[homes]
...other settings...
This is a strange setup since it seems to imply that the overrides are global only (/etc/frontview/samba/smb.conf.overrides) since its before the "shares" (/etc/frontview/samba/Shares.conf). (AFAIK include files are merged in order of appearance).
If thats the case, how does one manually give settings to specific shares?
I want to do this just for this drive - to test if that fruit,lockingis causing multiple displays for the same files.
[USB_HDD_2]
locking = yes
fruit:locking = none
not sure where to put this - as it must be done after the path defines for each share.. which is done in : /run/usb/samba/Shares.conf (this appears to be an automount config), since it relates to a specific USB mount.
why is there no include file to manually over-ride settings (global and/or shares) after these prior include entries on the /etc/samba/smb.conf?
FrontView (webpage access/config) has no custom settings options for shares - so where can someone add their own custom Samba share config settings in OS 6.10.8?
Any help would be appreciated. Thanks
5 Replies
- SandsharkSensei
First off, you are misinterpreti8ng the priority. If there are conflicting configurations, the last one given overrides the others, not the first. So anything in /etc/frontview/samba/Shares.conf that contradicts something in /etc/frontview/samba/Shares.conf will override.
If you look in /etc/frontview/samba/Shares.conf and you will see configurations by share name for shares in your data volume..
/etc/frontview/samba/addons/addons.conf seems to be included so addons can make changes that aren't in the others so they don't get overwritten by the OS. That's where you should put any changes you have for your data volume shares so they, too, don't get overwritten.
Having no attached USB drive, my /run/usb/samba/Shares.conf is empty. I've actually never had a USB drive connected, so I don't even know if it survives dismount and remount of a drive. But based on Netgear's naming scheme, I'll bet it contains the configurations for shares on a UBS drive. Have you looked at yours?
- q3dAspirant
The order list for includes is standard - top down, and yes the lower entries over-ride the higher entries...
The /run/usb/samba/Shares.conf file contains auto-generated (auto-mounted) USB drives, so the path's are defined there...since /etc/frontview/samba/addons/addons.conf is before it, i don't see how i can define settings for a path that yet to be defined. that was the issue.
So the /etc/samba/smb.conf is as follows# This file is auto-generated. Do not modify! [global] include = /etc/frontview/samba/smb.conf.defaults #dashboard: allow trusted domains = 0 dos charset = CP1252 hostname lookups = 0 map to guest = bad user oplocks = 1 spotlight:fts = 1 #dashboard:#dashboard:orgunit = #dashboard:#dashboard:no_sync_ads = #dashboard:idmap config SIMPSONS : backend = rid #dashboard:idmap config SIMPSONS : range = 32768 - 2000000000 #dashboard: password server = * #dashboard: include system krb5 conf = 0 realm = security = user template homedir = /home/%U workgroup = SIMPSONS ldap timeout = 15 #dashboard: #dashboard:domain_admin_user = vfs objects = catia fruit streams_xattr acl_xattr snapper btrfs include = /etc/frontview/samba/smb.conf.%a include = /etc/frontview/samba/smb.conf.overrides include = /etc/frontview/samba/Shares.conf include = /etc/frontview/samba/Shares.conf.%G include = /etc/frontview/samba/addons/addons.conf include = /run/usb/samba/Shares.conf include = /etc/frontview/samba/timemachine.conf [homes] browseable = 0 writeable = 1 public = 0 valid users = %D\%S
ie# /etc/frontview/samba/smb.conf.defaults contains: client max protocol = SMB3 dbwrap_tdb_mutexes:* = yes delete readonly = 1 #...etc.. # /etc/frontview/samba/smb.conf.overrides contains: server signing = auto #case sensitive = auto # /etc/frontview/samba/Shares.conf contains: #....NAS data drive mounts... # /etc/frontview/samba/addons/addons.conf does not exist (default with no apps/addons installed) # /run/usb/samba/Shares.conf contains: [USB_HDD_2] path = /media/USB_HDD_2 comment = "Store Drive" spotlight = 0 admin users = +admin read list = "user1","user2","@users" write list = "email1@mail.com","user2",+admin valid users = "email1@mail.com","user2","@users",+admin #...etc.. #...other auto-mounted USB drives.. # /etc/frontview/samba/timemachine.conf contains: # DO NOT EDIT.
So I don't see how adding any USB drive settings before the path is even defined will work
[YourShareName] locking = yes fruit:locking = none
This is what happens when settings occur before its pathed..# testparm -s | grep -A 5 '[USB_HDD_2]' Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Load smb config files from /etc/samba/smb.conf Processing section "[USB_HDD_2]" WARNING: No path in service USB_HDD_2 - making it unavailable! NOTE: Service USB_HDD_2 is flagged unavailable. # ...etc...
Yet the drive is available and accessible fine otherwise.
and since it's an auto mounted USB drive that is pathed in /run/usb/samba/Shares.conf .... i dont see how /etc/frontview/samba/timemachine.conf is something that can be manually added to.
Global settings can be used with /etc/frontview/samba/smb.conf.overrides but it appears that it's not possible to set specific USB drive settings with the current format of /etc/samba/smb.conf and its includes.If you add your settings to /run/usb/samba/Shares.conf as a test, does that solve your problem?
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!