Hi, I have a read-only fs and samba fails to start with the error message: Failed to open /var/lib/samba/secrets.tdb The file exists there but is of course read-only. Does samba need to write to this secret file or why doesn't it want to open that file?
On Thu, Jan 07, 2010 at 01:57:35AM +0100, Kacper wrote:> Hi, > > I have a read-only fs and samba fails to start with the error message: > > Failed to open /var/lib/samba/secrets.tdb > > The file exists there but is of course read-only. Does samba need to > write to this secret file or why doesn't it want to open that file?Samba needs to be able to write to its tdb files whilst running, it needs to have read-write access to its internal state data. Jeremy.
Kacper wrote:> The file exists there but is of course read-only. Does samba need to > write to this secret file or why doesn't it want to open that file? >If you want your root filesystem read-only (like, say, to boot your server from a CD-ROM or embedded device) then you can just copy this file to a RAM disk and either point to it in your smb.conf via the 'private dir =' directive, or else mount /etc/samba on your ramdisk and copy the files that go in there on startup. The latter exactly what my Linksys NAS200 running Samba 3.0.22 does. (I'm running the jac4 custom firmware)