I think that is because the smb.conf file is auto-generated by the firmware on every boot up. (I came across this when I was trying to solve a configuration issue in fstab and saw the relevant code in services.c I think)
I have a RT-N16 with 1.9.2.7-rtn-r1884.
I use the Samba integrated in the firmware.
I want to change the smb.conf to:
I use vi for editing and save it by typing :wqCode:encrypt passwords = yes
and then I do:
But after a reboot it saysCode:echo "/etc/smb.conf" >> /usr/local/.files && flashfs save && flashfs commit && flashfs enable
Code:encrypt passwords = no
Last edited by Bohlendach; 31-07-2010 at 10:44.
I think that is because the smb.conf file is auto-generated by the firmware on every boot up. (I came across this when I was trying to solve a configuration issue in fstab and saw the relevant code in services.c I think)
So what is the best solution to this?
Should I simply disable the integrated samba and
or should I just addCode:ipkg install samba2
to the post-mount script or make a script containingCode:/usr/sbin/smbd -D /usr/sbin/nmbd -D
and put it in /opt/etc/init.d?Code:/usr/sbin/smbd -D /usr/sbin/nmbd -D
or shouldn't smbd and nmbd run as deamons?
And then edit the smb.conf!?!
Last edited by Bohlendach; 01-08-2010 at 13:36.
yes they are auto-generated
if you have a wengi like setup you could use this how-to:
http://wl500g.info/showpost.php?p=60934&postcount=5
hi,
with the wengi installation may u use the internal samba, disable it at
the web-if and make a SxxSamba at init.d with the start strings,
the smb.conf file location can be defined there too
works also to start ftpCode:#!/bin/sh /usr/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/etc/samba/smb.conf /usr/sbin/nmbd -D -n asus -o -l /tmp -s /opt/etc/samba/smb.conf
ps.Code:#!/bin/sh /usr/sbin/vsftpd /opt/etc/vsftpd.conf
search tips how to define the .conf file location for samba/ftp with xinetd
(without the files are expected at /etc)