Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] Read-only fs

1 view
Skip to first unread message

Kacper

unread,
Jan 6, 2010, 8:00:02 PM1/6/10
to
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?
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Jeremy Allison

unread,
Jan 7, 2010, 12:40:02 AM1/7/10
to
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.

Rob Shinn

unread,
Jan 9, 2010, 11:40:03 PM1/9/10
to
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)

0 new messages