Results 1 to 4 of 4

Thread: Changes not being saved to the flash

  1. #1

    Changes not being saved to the flash

    Hello,

    I have an ASUS WL500g with Oleg firmware version 1.9.2.7-9.

    I need to make some changes on smb.conf in order access my Samba drive through a Mac OSX client. I need to change "encrypt passwords = no" to "yes" on the "[global]" section.

    When I edit smb.conf with vi and do the changes, I can access my drive through my Mac. The problem is that I can't save this changes to the flash to make them permanently and not loose them whenever a reboot is done. After the changes on smb.conf, I do "flashfs save", then "flashfs commit" and then "flashfs enable". I have previously done the "echo /etc/smb.conf >> /usr/local/.files". "flash save" informs that smb.conf as been saved. But everytime I reboot, "encrypt passwords" is always set to "no"...

    This is becoming very frustrating. Can someone please give me a help?

    Thank you all in advance.

    Cheers!

  2. #2
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    /etc/smb.conf is generated automatically on start up based on the settings in the webUI. So, possible workaround would be: disable samba in webUI, create appropriate smb.conf and start samba from post-mount like this:
    Code:
    /usr/sbin/smbd -D
    /usr/sbin/nmbd -D

  3. #3
    http://oleg.wl500g.info/

    Customizing samba config

    That's very simple. If you need to change /etc/smb.conf only, then you just need to add this file to /usr/local/.files using this command (this command should be executed only once)
    echo /etc/smb.conf >> /usr/local/.files
    To list the files which is already in the list to be saved type this command
    cat /usr/local/.files
    Once you've finished editing /etc/smb.conf commit your changes using
    # prepare image
    flashfs save
    # commit it to flash once you've checked, that file size does not exceed 64k
    flashfs commit
    # if you have not enabled flashfs yet type this as well
    flashfs enable

  4. #4
    Quote Originally Posted by al37919 View Post
    /etc/smb.conf is generated automatically on start up based on the settings in the webUI. So, possible workaround would be: disable samba in webUI, create appropriate smb.conf and start samba from post-mount like this:
    Code:
    /usr/sbin/smbd -D
    /usr/sbin/nmbd -D

    Thanks, I'm gonna try it


    Quote Originally Posted by Albom View Post
    http://oleg.wl500g.info/

    Customizing samba config

    That's very simple. If you need to change /etc/smb.conf only, then you just need to add this file to /usr/local/.files using this command (this command should be executed only once)
    echo /etc/smb.conf >> /usr/local/.files
    To list the files which is already in the list to be saved type this command
    cat /usr/local/.files
    Once you've finished editing /etc/smb.conf commit your changes using
    # prepare image
    flashfs save
    # commit it to flash once you've checked, that file size does not exceed 64k
    flashfs commit
    # if you have not enabled flashfs yet type this as well
    flashfs enable
    Thanks for your help, but that was exactly what I said that doesn't work.

    Cheers

Similar Threads

  1. Загрузка с USB flash на устройствах с 2Mb flash (Asus WL-520gC)
    By lightix in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 54
    Last Post: 15-04-2011, 11:26
  2. Replies: 2
    Last Post: 21-08-2008, 19:19
  3. USB flash disk (failure)
    By bigphantom in forum WL-500gP Q&A
    Replies: 3
    Last Post: 20-08-2008, 10:58
  4. Replies: 5
    Last Post: 13-01-2008, 23:50

Posting Permissions

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