Results 1 to 4 of 4

Thread: How to start samba daemon automatically after reboot

  1. #1

    Question How to start samba daemon automatically after reboot

    I've changed /etc/smb.conf for custom shares. Then I issued:
    Code:
    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?10...0936#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?

  2. #2
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    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.

  3. #3
    Quote Originally Posted by wpte View Post
    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?31...-login-by-user ?

  4. #4
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by newbiee View Post
    Is it possible to configure SAMBA via web interface to use advanced security as described here - http://wl500g.info/showthread.php?31...-login-by-user ?
    sure, for samba 3 a standard config is this:
    Code:
    [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?)

    Code:
    ipkg install samba36
    configuration will be placed in /opt/etc/samba

Similar Threads

  1. Asus start niet op.
    By duckie112 in forum Dutch Discussion - Nederlands
    Replies: 6
    Last Post: 26-04-2013, 19:33
  2. laptop A8Jseries start met batterij niet op, zonder batterij wel.
    By WillemdeNie in forum Dutch Discussion - Nederlands
    Replies: 0
    Last Post: 22-02-2013, 09:00
  3. Mac Os X и Samba
    By Dared in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 59
    Last Post: 30-10-2012, 13:33
  4. Oleg firmware/Samba 2.2.12 and OS X 10.7.2 Lion - No more Samba ?
    By QMax in forum WL-500gP Firmware Discussion
    Replies: 11
    Last Post: 29-04-2012, 20:49
  5. How to start builtin Telnet daemon
    By schriss in forum WL-500w Tutorials
    Replies: 1
    Last Post: 05-09-2007, 01:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •