NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

piet8stevens's avatar
piet8stevens
Aspirant
May 02, 2020
Solved

Samba - manually modify /etc/frontview/samba/Shares.conf

Hello, I had been making changes to /etc/frontview/samba/Shares.conf, basically to add 'mount points' lower in the directory hierarchy than just underneath the top directory, for which I have not found a way to do so in the GUI. I added entries to the end of the Shares.conf file.

 

This has worked well for a few months, but now, ReadyNas overwrites my manual edits/basically restores the conf file to what it was before my manual edits.

 

Is there a safe way of doing this so that my manual edits survive? It seems the first time I lost my manual edits was not related to a reboot, but I am not sure what triggered this.

 

I am on Firmware 6.10.3.

 

  • Put them in /etc/frontview/samba/addons/addons.conf  instead.  Note the locations in /etc/samba/smb.conf  of the include statements for the otrher .conf files.  Only /run/usb/samba/Shares.conf comes after addons.conf.  So you can add to or override anything in the others via addons.conf.  That's a double-edged sword, since you can do what you want but can also create problems with Samba access if you do something wrong.
     

    Content in addons.conf is normally put there by apps, so the OS leaves them alone, even on a firmware update.  It should be the same is true of an OS re-install, but I have not tried it

     

    This is what's in my addons.conf, just to show how it works alongside the contents of smb.comf and all the other .conf files with an include statement.

     

     

    [global]
    allow insecure wide links = yes
    unix extensions = no
    [ddclient]
      follow symlinks = yes
      wide links = yes

    Note that I added options for both global and the ddclient share.  These became necessary to allow the ddclient app configuration file to be accessible via a simlink in a normal share after one of the OS updates that updated Samba to a version where these were no longer the defaults.

     

1 Reply

Replies have been turned off for this discussion
  • Sandshark's avatar
    Sandshark
    Sensei - Experienced User

    Put them in /etc/frontview/samba/addons/addons.conf  instead.  Note the locations in /etc/samba/smb.conf  of the include statements for the otrher .conf files.  Only /run/usb/samba/Shares.conf comes after addons.conf.  So you can add to or override anything in the others via addons.conf.  That's a double-edged sword, since you can do what you want but can also create problems with Samba access if you do something wrong.
     

    Content in addons.conf is normally put there by apps, so the OS leaves them alone, even on a firmware update.  It should be the same is true of an OS re-install, but I have not tried it

     

    This is what's in my addons.conf, just to show how it works alongside the contents of smb.comf and all the other .conf files with an include statement.

     

     

    [global]
    allow insecure wide links = yes
    unix extensions = no
    [ddclient]
      follow symlinks = yes
      wide links = yes

    Note that I added options for both global and the ddclient share.  These became necessary to allow the ddclient app configuration file to be accessible via a simlink in a normal share after one of the OS updates that updated Samba to a version where these were no longer the defaults.

     

NETGEAR Academy

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

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More