smb.conf gets overwritten after reboot.

455 views
Skip to first unread message

strongline

unread,
Apr 28, 2012, 2:29:03 PM4/28/12
to al...@googlegroups.com
I am having a problem that shares defined in samba becomes not visible to Windows clients after reboot. Further troubleshooting lead me to realize it was because "host alow" entry in smb.conf gets overwritten after reboot. The working value should look like "xxx.xxx.xxx.xxx/24" but it is always revert to "xxx.xxx.xxx.xxx/" with reboot. Did a bit of googling and found it's not an uncommon issue. Many just wrote a start up script to copy a correct copy to /etc/samba, but I wonder that there must be a neater solution.

- Did I do something wrong when initially confgure samba? I've done re-configuration quite a few times ever since, using either basic setup page or SWAT, but not able to fix this.
- How/where did samba get the incorrect value? Is there a default setting file that I can modify? I couldn't find one.
- Or it's just a bug?

Joao Cardoso

unread,
Apr 28, 2012, 3:13:39 PM4/28/12
to al...@googlegroups.com
A bug, reported in the RC2 announcement release notes:
 
One more know issue with RC2:

3-Can't access shares when using "reloaded"
================================

If you have not flashed Alt-F and you are using the "reloaded" method (based on the fun_plug file), you will not see any samba/CIFS/smb shares available, although you can access Alt-G web pages.

This is bug, and you "fix" it by using one of the two methods bellow:

-After each reboot go to Setup->Host (not "hosts") in the DNS and hit the "Submit" button (don't need to
change anything) -

-Or edit the fun_plug file with a linux compatible editor, comment the "KIP=yes" line near the top (setting it to 'no' will *not* work), and reboot -- this only needs to be done once.

The first one has been confirmed to work, but not the second.
 

Tom Schmidt

unread,
Apr 28, 2012, 4:57:13 PM4/28/12
to al...@googlegroups.com
The RC2 release overwrites the first entries of the "hosts allow" line of the /etc/samba/smb.conf file.  The workaround for this is to add a third entry with your local subnet and netmask so that it looks like this:

 hosts allow = 127. 192.168.1.0/ 192.168.1.0/24

assuming your home network is on the 192.168.1 subnet.  If it is something else like 192.168.0, then adjust accordingly.

Tom
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To view this discussion on the web visit https://groups.google.com/d/msg/alt-f/-/Srp79FKOZHMJ.
To post to this group, send email to al...@googlegroups.com.
To unsubscribe from this group, send email to alt-f+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/alt-f?hl=en.

-- 
---------------------------------------------------------------------
Tom Schmidt   t...@4schmidts.com
http://www.4schmidts.com/
Reply all
Reply to author
Forward
0 new messages