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). ...
q3d
Apr 28, 2025Aspirant
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.
StephenB
Apr 28, 2025Guru - Experienced User
If you add your settings to /run/usb/samba/Shares.conf as a test, does that solve your problem?
- SandsharkApr 28, 2025Sensei - Experienced User
Do the entries for a USB drive get deleted when you dismount it? If so, then putting in manual entries is only temporary unless you never dismount the drive. As I said, I've never attached a USB drive to my NAS, so I simply don't know. Unfortunately for you, it makes complete sense to me that you can't put in configuration options for a share that's not always there.
The alternative would be to enable the option globally and then disable it on every other share -- certainly not a preferred method.
- q3dMay 04, 2025Aspirant
They are perm USB connected drives, so never really tested removing them to see if those configs still remain. Yes global may be the only way, it's a shame though it can't be done via Frontview or even just a final include file.
Thanks for your assistance though 🙂 this is an EOL product after all
Related Content
NETGEAR Academy

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