From: Robert Bradley <robert.bradley1@gmail.com>
To: cerowrt-devel@lists.bufferbloat.net
Subject: Re: [Cerowrt-devel] cerowrt-3.10.34-4 dev build released
Date: Sun, 06 Apr 2014 11:23:08 +0100 [thread overview]
Message-ID: <53412B0C.2020800@gmail.com> (raw)
In-Reply-To: <CAK-n8j7tUe=PdwVxeeC1xG2EvsuwPV3K-QFuaa58XzYP-gnPYw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1193 bytes --]
On 06/04/2014 01:15, Jim Reisert AD1C wrote:
> On Sat, Apr 5, 2014 at 1:26 PM, Dave Taht <dave.taht@gmail.com> wrote:
>
>> It would have helped to have a backup.
> Yup, hindsight is 50/50 [sic]
>
>> As best I recall we'd had to add 3 lines to the smb.conf.template file, notably
>>
>> wins support = yes
> Yup, did that. Not working this time around.
>
> Maybe I'll play around some more tomorrow.
>
I noticed last time that Samba tends to bind to localhost only on
CeroWRT, since no interface is set in /etc/config/samba. For the
moment, you need to add "list interface <interface>" lines to
/etc/config/samba manually:
uci add_list samba.@samba[0].interface=se00
uci add_list samba.@samba[0].interface=sw00
uci add_list samba.@samba[0].interface=sw10
uci commit samba && /etc/init.d/samba restart
This limits Samba to the non-guest interfaces. I think you should be
able to add interfaces from the GUI too but that seems to be missing
from CeroWRT and OpenWRT. The attached patch adds it back in (cd /;
patch -p1 to apply it) to and seems to work fine despite the Wiki at
http://wiki.openwrt.org/doc/uci/samba stating otherwise.
--
Robert Bradley
[-- Attachment #1.2: samba.patch --]
[-- Type: text/plain, Size: 810 bytes --]
--- rom/usr/lib/lua/luci/model/cbi/samba.lua
+++ overlay/usr/lib/lua/luci/model/cbi/samba.lua
@@ -28,6 +28,15 @@
translate("Allow system users to reach their home directories via " ..
"network shares"))
+net = s:taboption("general", Value, "interface", translate("Served interfaces"))
+net.template = "cbi/network_netlist"
+net.widget = "checkbox"
+net.nocreate = true
+
+function net.cfgvalue(self, section)
+ return m.uci:get("samba", section, "interfaces")
+ end
+
tmpl = s:taboption("template", Value, "_tmpl",
translate("Edit the template that is used for generating the samba configuration."),
translate("This is the content of the file '/etc/samba/smb.conf.template' from which your samba configuration will be generated. " ..
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 899 bytes --]
prev parent reply other threads:[~2014-04-06 10:23 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-03 1:17 Dave Taht
2014-04-03 1:48 ` Stephen Hemminger
2014-04-03 1:58 ` Dave Taht
2014-04-03 2:43 ` Dave Taht
2014-04-03 10:09 ` David Personette
2014-04-03 15:17 ` Jim Gettys
2014-04-03 18:20 ` Neil Shepperd
2014-04-03 22:36 ` Dave Taht
2014-04-03 22:51 ` Maxim Kharlamov
2014-04-03 22:54 ` Dave Taht
2014-04-03 22:56 ` Aaron Wood
2014-04-03 22:57 ` Aaron Wood
2014-04-03 22:58 ` Dave Taht
2014-04-03 23:01 ` Maxim Kharlamov
2014-04-04 1:26 ` David Personette
2014-04-04 7:04 ` Aaron Wood
2014-04-04 6:57 ` Toke Høiland-Jørgensen
2014-04-05 12:49 ` Neil Shepperd
2014-04-05 16:02 ` Dave Taht
2014-04-05 16:15 ` Dave Taht
2014-04-05 8:34 ` Török Edwin
2014-04-05 15:53 ` Dave Taht
2014-04-05 21:25 ` Török Edwin
2014-04-07 14:45 ` Toke Høiland-Jørgensen
2014-04-07 15:27 ` Török Edwin
2014-04-07 15:31 ` Toke Høiland-Jørgensen
2014-04-07 17:58 ` Dave Taht
2014-04-07 18:51 ` Török Edwin
2014-04-05 19:11 ` Jim Reisert AD1C
2014-04-05 19:26 ` Dave Taht
2014-04-06 0:15 ` Jim Reisert AD1C
2014-04-06 10:23 ` Robert Bradley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.bufferbloat.net/postorius/lists/cerowrt-devel.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53412B0C.2020800@gmail.com \
--to=robert.bradley1@gmail.com \
--cc=cerowrt-devel@lists.bufferbloat.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox