1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to make changes in Samba (SMB) stick

Discussion in 'Tomato Firmware' started by jbshocks, May 7, 2010.

  1. jbshocks

    jbshocks Networkin' Nut Member

    I have a mounted and shared USB drive on my Asus router running tomato I can map to it just fine from both windows and linux machines with and without security. The trouble is that I can not connect to it from my Wii running home brew and WiiMC or MPlayerce. It will work on mplayerce .72 but not newer and the real goal is to work with WiiMC (much nicer)

    So I have telneted to the router and used vi to change the smb.conf file to try to change security to share thinking that this may be part of the problem. I have then reopened the smb.conf and confirmed that the change was saved. The trouble is that when I go to test samba restart won't work because it says that it is not allowed so I issue a reboot to the router. When that happens it is over writing the smb.conf and changing my settings back. Is there a way to permanently edit smb.conf? How about restart samba without a reboot? Or am I completely off base and need to chase this a different way?
     
  2. teddy_bear

    teddy_bear Network Guru Member

    First of all, the "security = share" is set automatically when you choose "no authentication" access in the GUI, so to test whether "share" mode will help you or not, you don't need to edit the smb.conf.

    Second, if you only need to add some settings and not overwrite the default ones, you can add them to the "Samba Custom Configuration" box - they will be added to the [global] section of smb.conf.

    If you still would like to experiment with smb.conf content, you can manually restart Samba after you make your changes:
    Code:
    killall smbd; killall nmbd
    sleep 2
    nmbd -D; smbd -D
    
    This way, it will not overwrite the smb.conf. Of course, your changes will be lost again after you restart the router, or restart samba from GUI - but at least this way you'll be able to figure out whether or not some changes are needed for your configuration to work...

    Post your results here, and we'll go from there.
     
  3. jbshocks

    jbshocks Networkin' Nut Member

    thanks for the response. If I change a setting in the gui text box will it take precedence over a setting in smb.conf?
     
  4. jbshocks

    jbshocks Networkin' Nut Member

    thanks for the tips on restarting samba without over writing. That helped for testing but unfortunately I couldn't get it to work. There must be an issue on the wiimc side.
     

Share This Page