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.

making Tower the preferred master on the network.

Featured Replies

I wish to have the unRaid system act as the preferred master for master browser elections on my network. I know what I need to set in the smb-names.config file. What is the string I must add to the boot file edit.cfg in the config folder?  I tried

preferredMaster ="yes" but that did not do what I expected in that the parameter 'preferred master = yes' did not appear in the smb-names.config file after a boot.

 

Please advise.

Don't know what version you are on but you can do this from the webGUI in recent version (not sure about older ones).

 

Go to Settings/SMB

  • Author

I am running RCA 5.0 r8 with the special features plugin. I do not see that capability in that plugin which  over rides the standard web GUI. AFAIK.  I am wanting to do it as a permanent change and I do not believe what you are suggesting will modify the boot image. That implies I need to do it on each reboot.  I guess I need a code snippet to add to my go file but my bash skills are a bit weak.  Any help appreciated.

it is there ... even in SF

 

smbmaster.jpg

 

  • Author

I'm sorry I just don't see it. I see an option for local master but that is not the same as preferred master. When an SMB server is set as a local master it may act as a browse master. When it is set as the preferred master then it has a higher priority during an election for browse master which should cause it to become the browse master in preference to other SMB servers that are participating in the election.

 

I want the Tower to be the preferred browse master as it is always on 24/7 and is my most reliable system.

If you really want to try this, you could add the following:

 

/etc/rc.d/rc.samba stop

sed -i '/local master = yes/a preferred master = yes' /etc/samba/smb-names.conf

/etc/rc.d/rc.samba start

 

You could also add a:

 

os level = 255

 

as well to ensure that unRAID is up the top of the election chain.

 

Ignore the above.. should always test your theories before typing eh :)  lol.. anyways, /etc/rc.d/rc.samba appears to be what generates smb-names.conf on the fly.. so we could do this:

 

/etc/rc.d/rc.samba stop
sed -i '/echo "local master = $localMaster"/a\      echo "preferred master = yes"                     >>\/etc\/samba\/smb-names.conf' /etc/rc.d/rc.samba
sed -i '/echo "preferred master = yes"/a\      echo "os level = 255"                             >>\/etc\/samba\/smb-names.conf' /etc/rc.d/rc.samba
/etc/rc.d/rc.samba start

 

I just tested this myself, as a quick "nbtstat -a" showed that my Win8 box was actually master browser.  Did the above and a few minutes later:

 

Ethernet 2:
Node IpAddress: [192.168.1.159] Scope Id: []

           NetBIOS Remote Machine Name Table

       Name               Type         Status
    ---------------------------------------------
    ORION          <00>  UNIQUE      Registered
    ORION          <03>  UNIQUE      Registered
    ORION          <20>  UNIQUE      Registered
    ??__MSBROWSE__?<01>  GROUP       Registered
    WORKGROUP      <1D>  UNIQUE      Registered
    WORKGROUP      <1E>  GROUP       Registered
    WORKGROUP      <00>  GROUP       Registered

  • Author

I assume I could add that to my GO sccript? I am not that expert in Linux, but I get by.

 

I'll try it and let you know

 

Thanks

Yes, it can be added to your go script

Archived

This topic is now archived and is closed to further replies.

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.