FHS defaults for samba4

Steve Langasek vorlon at debian.org
Fri Jan 6 05:36:03 GMT 2006

On Fri, Jan 06, 2006 at 07:09:04AM +1100, Andrew Bartlett wrote:
> On Thu, 2006-01-05 at 12:19 -0700, John H Terpstra wrote:
> > On Thursday 05 January 2006 12:05, Andrew Bartlett wrote:
> > > As we move towards the tech preview, I have been thinking about old
> > > Samba habits that should not die hard.

> > >  - locking databases (non-persistent)
> > >                /var/run/samba      PREFIX/var/run
> > >  - cache databases (winbindd cache)
> > >                /var/cache/samba   PREFIX/var/cache
> > >  - printing (persistent cache, but you loose print job tracking if you
> > > scrub it)
> > >                /var/lib/samba     PREFIX/var/
> > >    (or should this be /var/cache/samba or /var/spool/samba?)

> > Red Hat and SuSE have opposing conventions here. I doubt that either will 
> > change on that score.

> Can you clarify which uses which?  

> In any case, what I'll aim to do is have Samba4 able to accommodate
> either by means of configure options.  That way, the different packages
> can still move things around, but won't have to patch source to do so.  

> The big thing I'm trying to avoid is that the Debian folks had a patch
> to spilt one of our directories into two standard places.  The problem
> was, they didn't want to create more smb.conf options (real
> documentation pain), so administrators were unable to change these at
> runtime.  

Yes, the key is to categorize the files in question by their
(FHS-applicable) function with as much granularity as needed; if a
distributor wants to put two groups of files into the same directory,
there's no reason they can't do that as well.  It's a *lot* easier for a
distributor to re-combine directories than it is to split them out...

Anyway, for printing we've consistently put this in /var/cache for Debian,
because AIUI losing this data doesn't actually hurt anything -- you lose
track of current jobs, but print jobs should be short-lived anyway.  Right?

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon at debian.org                                   http://www.debian.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20060105/f14c41de/attachment.bin

More information about the samba-technical mailing list