[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Update re: read-only root filesystem



On Sun, Jun 22, 2003 at 11:16:54AM +0200, Xavier Roche wrote:
> > this is not a problem due to devpts filesystem.

> Okay, using devfs it works perfectly.

> A remaining problem is also Samba:

> [2003/06/22 11:09:07, 0] passdb/machine_sid.c:pdb_generate_sam_sid(85)
>   unable to open or create file /etc/samba/MACHINE.SID. Error was
> Read-only file system

> So actually samba writes to /etc/samba .. 

> The problem also occurs for the pwd database (sync with other machines)

> [2003/06/22 11:13:11, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(237)
>   startsmbfilepwent_internal: failed to set 0600 permissions on password file /etc/samba/smbpasswd. Error was Read-only file system
>   .unable to open passdb database.

> Moving both /etc/samba/MACHINE.SID and /etc/samba/smbpasswd to /run/samba
> solves the problem

> Remarks?

In general, you're likely to get much better results with a read-only
root if you use current versions of packages from unstable.  You seem to
have found a way to resolve the issue with the Samba package, but in
unstable the issue should not have arisen: /etc/samba/MACHINE.SID has
been replaced by /var/lib/samba/secrets.tdb, and those wanting a
read-only root can easily opt to use /var/lib/samba/passdb.tdb instead
of /etc/samba/smbpasswd.

-- 
Steve Langasek
postmodern programmer

Attachment: pgpWiV0a8UlxG.pgp
Description: PGP signature


Reply to: