Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[6.8.1] smb-extra.conf loaded before smb-shares.conf

  • Closed

Description

This is an issue I had crop up when attempting to override default unraid settings or add additional settings to unraid shares. Basically the samba configuration file is loaded top to bottom in order, and includes are handled inline following the same logic. This allows tiered configuration files to override one another for different settings and creates a robust settings architecture. 

I want to override settings for several user shares to restrict wireguard clients to specific shares via IP, and to eventually create per-user storage volumes for quota based individual usage. Seems easy enough - add a new entry like so:


[ShareName]
Key = Value


in the smb-extra configuration section in the settings menu!

The problem is that these settings are loaded before the unraid shares are defined, which means my new entry is defining the share:
/etc/samba/smb.conf:


        # hook for user-defined samba config
        include = /boot/config/smb-extra.conf

        # auto-configured shares
        include = /etc/samba/smb-shares.conf


 This is a problem because this new share has no path, so samba marks it unavailable and doesn't list it anymore:

 


testparm

WARNING: No path in service Backups - making it unavailable!

NOTE: Service Backups is flagged unavailable.

 


Simply reversing the order that these two conf files are included resolves this and allows settings to be overridden or added at will.

 

 

Steps to Reproduce:

  1. Add an entry matching the name of any existing Unraid auto-configured share to smb-extra.conf
  2. Restart the SMB service or stop/start the array

 

 

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.