Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: freyone on March 21, 2016, 11:05:03 PM

Title: /usr/local/etc/samba/smb.conf not writable?
Post by: freyone on March 21, 2016, 11:05:03 PM
after i install samba.i try  to change the smb.conf. samba works normally.
but when i reboot the system.the changing of smb.conf lost.i am confusing.
Title: Re: /usr/local/etc/samba/smb.conf not writable?
Post by: Rich on March 22, 2016, 12:16:44 AM
Hi freyone
/usr/local/etc/samba/smb.conf  is not a file. It's a link to a file inside the  samba.tcz  extension. Extensions are packed
in a squash file system which is by design a read only file system. You need to replace the link with a copy of the file:
Code: [Select]
rm -f /usr/local/etc/samba/smb.conf
cp /tmp/tcloop/usr/local/etc/samba/smb.conf /usr/local/etc/samba/smb.conf
You should now be able to edit the file. Add the file to your backup by adding:
Code: [Select]
usr/local/etc/samba/smb.confto your  /opt/.filetool.lst file. Then run a backup. Note there is no leading / allowed.
Spend a little time learning about persistence by reading:
http://tinycorelinux.net/book.html
Title: Re: /usr/local/etc/samba/smb.conf not writable?
Post by: Juanito on March 22, 2016, 03:06:18 AM
/usr/local/etc/samba/smb.conf  is not a file. It's a link to a file inside the  samba.tcz  extension. Extensions are packed
in a squash file system which is by design a read only file system.
If we're speaking of the samba3 extension in the x86 tc-7.x repo, then this is not the case - the extension start-up script copies smb.conf into the filesystem so that it is editable.

If smb.conf is altered it needs to be added to a backup to survive re-boot.