August 13, 2025Aug 13 Hey folks so I was wondering, If I add a line in the smb extra config such as `ea support = no` for instance, and later on I decide to revert the setting, is removing that line in the extra config enough to revert to the default which should be yes or do I have to explicitly set it to `ea support = yes` and only then I will be able to take the line off?Do all of these extra settings have a default to revert to when a line is removed or only some of them?Thanks for any reply.
August 13, 2025Aug 13 Just put a #<SPACE> in front of the line with the setting. That converts it to a comment which will be ignored when the file is processed! As I remember when you restart the array, Samba is restarted and the smb_extra.conf file is processed again that time. Example of both commented and uncommented lines shown below: Edited August 13, 2025Aug 13 by Frank1940
August 13, 2025Aug 13 Solution 2 hours ago, MonadProxy said:Do all of these extra settings have a default to revert to when a line is removed or only some of them?Yes--- They will auto revert back to the default configuration. You can find the defaults here:https://www.samba.org/samba/docs/current/man-html/smb.conf.5.htmlThat is because the defaults are all defined in the Samba app. When the various Samba configuration files are processed, each one can changes any of the setting. (Each one of the configuration files can call another file to be processed.) The last change becomes the new setting that is used. (There could be two or three changes to a setting but it is the last one made that 'sticks'.) Edited August 13, 2025Aug 13 by Frank1940
August 18, 2025Aug 18 Author On 8/13/2025 at 5:04 PM, Frank1940 said:Yes--- They will auto revert back to the default configuration. You can find the defaults here:https://www.samba.org/samba/docs/current/man-html/smb.conf.5.htmlThat is because the defaults are all defined in the Samba app. When the various Samba configuration files are processed, each one can changes any of the setting. (Each one of the configuration files can call another file to be processed.) The last change becomes the new setting that is used. (There could be two or three changes to a setting but it is the last one made that 'sticks'.)Ok thanks for the tip, the reason I was asking is because I use to be able to use NTFS ADS streams to set certain information in the files and it would be preserved when moved to the array back then I had no extra config, after that I did disable them for performance tests and then I just removed the settings thinking that would immediately re-enable them but it didn't until I explicitly set them to the opposite. So not sure here. Edited August 18, 2025Aug 18 by MonadProxy
August 18, 2025Aug 18 If you want some tools for looking at the Samba configuration. See this post: https://forums.unraid.net/topic/170027-smb-windows-settings-available-through-power-shell-and-linux-samba-tools-informational-posting/#findComment-1545332That thread also contains some tools for looking at the Windows client configuration...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.