Posted: Thu Mar 10, 2022 14:43 Post subject: Several SMB/SAMBA questions
1. Is it possible to modify the location of the smb.conf file? Mine is located in the tmp directory so changes don't survive a reboot and even for testing if I modify the file and issue
Code:
stopservice samba3
startservice samba3
(also tried stopservice samba3.0 - not sure which is correct)
Posted: Thu Mar 10, 2022 20:59 Post subject: Re: Several SMB/SAMBA questions
JackPollack wrote:
1. Is it possible to modify the location of the smb.conf file? Mine is located in the tmp directory so changes don't survive a reboot and even for testing if I modify the file and issue
Code:
stopservice samba3
startservice samba3
(also tried stopservice samba3.0 - not sure which is correct)
the changes don't appear to be implemented.
The usually procedure is to stop the running service, then restart it w/ your own config file (which may require overriding the default config file on the command line). But you need to store your own config file on jffs or USB. Or else modify it on-the-fly within your script.
Joined: 26 Mar 2013 Posts: 1857 Location: Hung Hom, Hong Kong
Posted: Fri Mar 11, 2022 12:22 Post subject: Re: Several SMB/SAMBA questions
JackPollack wrote:
1. Is it possible to modify the location of the smb.conf file? Mine is located in the tmp directory so changes don't survive a reboot and even for testing if I modify the file and issue ....the changes don't appear to be implemented.
Enable JFFS and you could use your custom smb.conf in /jffs/etc! Alternatively, you could mount an USB drive as /jffs/.
Quote:
Is it possible to remove/deactivate current version of SAMBA from current firmware and install an older SAMBA package
You would have to use Entware! Recent versions of DD-WRT are using in-kernel Samba (ksmbd) not the standalone Samba package.
Quote:
Code:
stopservice samba3
startservice samba3
(also tried stopservice samba3.0 - not sure which is correct)
I am using:
Code:
service samba3 stop
service samba3 start
_________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Mon Mar 14, 2022 16:00 Post subject:
Code:
restart samba3
That should work with all dd-wrt services, it will stop and start in succession, unless this isn't desirable for loading a overriding config. But there it is.
I'm having an issue that my SMB server isn't broadcasting so I'm unable to connect to it from my WD-TV.
It doesn't show up in my Mac's Network tab, however if I connect to it manually (smb://192.168.1.1) it shows up. Once I disconnect it disappears. _________________ Google is Spyware
Joined: 26 Mar 2013 Posts: 1857 Location: Hung Hom, Hong Kong
Posted: Sun Mar 20, 2022 15:12 Post subject:
Fried Chicken wrote:
I'm having an issue that my SMB server isn't broadcasting so I'm unable to connect to it from my WD-TV.
It doesn't show up in my Mac's Network tab, however if I connect to it manually (smb://192.168.1.1) it shows up. Once I disconnect it disappears.
Go to the Samba settings:
1. Set Max Protocol to 2.01
2. Turn OFF encryption
3. Set Access Level to Everyone
4. Make shares Public
My bet is they don't know SMB 3.0?? If these solved the problem, raise the security level one parameter a time to find out whether you could use Access Level Restricted.
_________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
I'm having an issue that my SMB server isn't broadcasting so I'm unable to connect to it from my WD-TV.
It doesn't show up in my Mac's Network tab, however if I connect to it manually (smb://192.168.1.1) it shows up. Once I disconnect it disappears.
Go to the Samba settings:
1. Set Max Protocol to 2.01
2. Turn OFF encryption
3. Set Access Level to Everyone
4. Make shares Public
My bet is they don't know SMB 3.0?? If these solved the problem, raise the security level one parameter a time to find out whether you could use Access Level Restricted.
While I don't have samba 2.01, I have 2.02. I set both to 2.02, and I'm waiting to see what happens.
All other settings were as stated _________________ Google is Spyware
Still haven't found a reason why everything else broadcasts except the DD-WRT router's NAS.
Of course it can't be simple and just appear like every other computer and my stupid printer. Why is linux always like this -_- _________________ Google is Spyware
Joined: 18 Mar 2014 Posts: 12887 Location: Netherlands
Posted: Sat Apr 09, 2022 9:39 Post subject:
It is only in experimental builds.
Until now I have not succeeded in convincing BS to add it to the regular builds (FT, AsusWRT and OpenWRT have it, we can add it with Entware but that is a hassle so I think it would be nice to add it too, it adds about 120 KB so that should be doable, not perhaps for all routers but it is an option in the config files so it can/will only be added to routers with enough flash space)
Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Sat Apr 09, 2022 12:12 Post subject:
Well, assume that only a small minority of users know how to enter paths to network shares, you know as well as I that, the reality is most people haven't a clew how tech works in general.
Also in Windows its more like \\IP or \\Server-Name
Also, does CIFS automount work fr ksmbd? Or is that related to old samba implementation and in that case will that be removed if it doesnt work for ksmbd and your feature added? Or make Cifs automount work for this instead?
On that note, DD-WRT lacks some UX fundamentals implemented in the backend, for instance this feature if it were implemented (I hope it is), should automatically be enabled when one or more services that depend on it are enabled, like CIFS automount or creating a samba share (idk which would be better as a linked auto enable. Unrelated things like freeRADIUS depend on JFFS2 to be enabled manually also, which is also anti UX. Even though on that later case, we have a help text that tell you so, Im of the opinion the large amount of regular users dont read anything or miss it entirely.
This will be worse, imagine that I implement responsive designs and make the help menu collapsible and the settings page gain the extra width to deal with tables that lack sufficient width to have umpteen table headers and respective entries below, not break the layout and show maximum information --now even if the collapsible help menu is visible by default and a user collapses it, then such help main entries are no longer visible. So auto enabling needed features or asking the user by dialog if they wants to enable them, is IMO a desired UX.