Posted: Thu Mar 12, 2020 2:15 Post subject: custom smb.conf
Hi, I've been a forum member for years but this is my first post.
I recently wanted to try a custom smb.conf file for the built-in samba/file sharing, and by searching in the forum discovered the file was to be put at /jffs/etc/smb.conf - when that did not work, I checked the samba3.c file in source code and noticed when smbd/nmbd (among others) are used, a variable was set to that location and used if custom file exists (or to /tmp/smb.conf if it doesn't) but, ksmbd.mountd in recent builds is set (line 273) to use default location /tmp/smb.conf specifically.
Long story short:
Will ability to use a custom smb.conf be enabled for samba ksmbd.mountd soon/in the future/never?
Joined: 18 Mar 2014 Posts: 12908 Location: Netherlands
Posted: Sat Mar 14, 2020 16:40 Post subject: Re: custom smb.conf
jd8121 wrote:
Hi, I've been a forum member for years but this is my first post.
I recently wanted to try a custom smb.conf file for the built-in samba/file sharing, and by searching in the forum discovered the file was to be put at /jffs/etc/smb.conf - when that did not work, I checked the samba3.c file in source code and noticed when smbd/nmbd (among others) are used, a variable was set to that location and used if custom file exists (or to /tmp/smb.conf if it doesn't) but, ksmbd.mountd in recent builds is set (line 273) to use default location /tmp/smb.conf specifically.
Long story short:
Will ability to use a custom smb.conf be enabled for samba ksmbd.mountd soon/in the future/never?
Thanks in advance!
You are absolutely right.
I think that with a few tweaks it would be possible to use the conffile variable (remove --configfile= from it and hardcopy it to the start up rule for SAMBA3 and SAMBA4)
@portsup: I will look into that, even if just to learn something new - a different workaround I did have working was installing samba separately through entware, but nothing beats the elegant simplicity of having an already built in custom smb.conf location working again if it's possible
@egc: Wasn't sure if it was a bug, or intentional for some reason, seemed better to ask first before reporting a bug with me having "0" previous posts (despite the 7 years I've been a forum member) before starting this thread
Joined: 06 Jun 2006 Posts: 7492 Location: Dresden, Germany
Posted: Sun Mar 15, 2020 6:41 Post subject: Re: custom smb.conf
jd8121 wrote:
Hi, I've been a forum member for years but this is my first post.
I recently wanted to try a custom smb.conf file for the built-in samba/file sharing, and by searching in the forum discovered the file was to be put at /jffs/etc/smb.conf - when that did not work, I checked the samba3.c file in source code and noticed when smbd/nmbd (among others) are used, a variable was set to that location and used if custom file exists (or to /tmp/smb.conf if it doesn't) but, ksmbd.mountd in recent builds is set (line 273) to use default location /tmp/smb.conf specifically.
Long story short:
Will ability to use a custom smb.conf be enabled for samba ksmbd.mountd soon/in the future/never?
Thanks in advance!
its in total conflict with the gui configuration which will be unuseable. nobody holds you back from starting samba manually with start scripts. but its pointless since everything you need can be configured in gui. _________________ "So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
I would be very surprised you can configure everything with smb just through the gui. Most things I have had to get more involved in like openvpn, proftpd and some network stuff has required beyond gui config.
I think it would be far easier to worry less on the gui and just add an option for custom config files for most everything....
Joined: 18 Mar 2014 Posts: 12908 Location: Netherlands
Posted: Tue Mar 17, 2020 13:17 Post subject:
portsup wrote:
I would be very surprised you can configure everything with smb just through the gui. Most things I have had to get more involved in like openvpn, proftpd and some network stuff has required beyond gui config.
I think it would be far easier to worry less on the gui and just add an option for custom config files for most everything....