PDA

Bekijk de volledige versie : How to start samba daemon automatically after reboot



newbiee
21-07-2013, 00:25
I've changed /etc/smb.conf for custom shares. Then I issued:
echo "/etc/smb.conf" >> /usr/local/.files && flashfs save && flashfs commit && flashfs enable Now everything works as I want. But when I reboot the router, the /etc/smb.conf is loaded with default values.

So according to: http://wl500g.info/showthread.php?10307-HowTo-Install-and-configure-Oleg-s-firmware&p=60936#post60936 I made the custom changes again, save&commit&enable, disabled samba via webinterface and made a save&restart.

After restarting the custom settings in smb.conf stayed the same, but the shares are no longer working - looks like samba daemon is not running. How can I start it manually? Or where should I enable it?

wpte
28-07-2013, 09:51
Go to the web admin of oleg firmware. You can configure samba under "USB Application -> Samba"

Every time the router restarts, a fresh configuration file will be generated, and thus these settings you made will be lost.
You could also try installing optware samba, also mentioned in wengi's tutorial.

newbiee
31-07-2013, 11:23
Go to the web admin of oleg firmware. You can configure samba under "USB Application -> Samba"

Is it possible to configure SAMBA via web interface to use advanced security as described here - http://wl500g.info/showthread.php?31455-How-to-change-SAMBA-security-to-login-by-user ?

wpte
31-07-2013, 21:37
Is it possible to configure SAMBA via web interface to use advanced security as described here - http://wl500g.info/showthread.php?31455-How-to-change-SAMBA-security-to-login-by-user ?

sure, for samba 3 a standard config is this:

[global]
netbios name = Router
guest account = admin
server string = Router
guest ok = Yes
workgroup = MSHOME
os level = 255
interfaces = 192.168.2.1/24
username map = /opt/etc/samba/user.map
domain master = Yes
hosts allow = 192.168.1.0/24
encrypt passwords = yes
security = share
dns proxy = No
wins support = true
preferred master = yes

[movies]
comment = Movies
path = /tmp/mnt/disc0_1
read only = No


Only thing you need to do is add the user security etc.
I recommend installing samba36 from ipkg (you have ipkg right?)


ipkg install samba36

configuration will be placed in /opt/etc/samba