Subject: Re: Someone set me straight about mtree?
To: Mason Loring Bliss <mason@acheron.middleboro.ma.us>
From: Geoff Wing <gcw@pobox.com>
List: netbsd-help
Date: 05/18/1999 11:22:13
Mason Loring Bliss wrote about Re: Someone set me straight about mtree?:
:On Fri, May 14, 1999 at 03:18:29AM +0000, Geoff Wing wrote:
:> Mason Loring Bliss <mason@acheron.middleboro.ma.us> typed:
:> :I like to have /var/mail be group-owned by "mail" and mode 0775. In my
:> :/etc/mtree/special I've got:
:> :mail            type=dir mode=0775 uname=root gname=mail ignore
:> :However, "make build" does:
:> :(cd /usr/src/etc && make DESTDIR=/ distrib-dirs)
:> :install -d -o root -g wheel -m 755 /
:> :mtree -def mtree/NetBSD.dist -p // -u
:>             ^^^^^^^^^^^^^^^^^
:Yes, but where do I specify the group ownership of that one directory in
:NetBSD.dist? That's what's changing that shouldn't be changing, and the
:only place I see that happening is in special.

:Hm... I *do* see this in NetBSD.dist:
:/set type=dir uname=root gname=wheel mode=0755

These are the global settings.  You can specify individual settings on the
actual lines.  e.g. around line 1900 in NetBSD.dist
	# ./var/mail
	mail            mode=1777

change that to
	mail		gname=mail mode=0775
which due to global settings becomes:
	mail		type=dir uname=root gname=mail mode=0775

From manual:
	....
	Each of the keyword/value pairs consist of a keyword, followed by an
	equals sign (``=''), followed by the keyword's value, without whitespace
	characters.  These values override, without changing, the global value of
	the corresponding keyword.
	....

Regards,
-- 
Geoff Wing   <gcw@pobox.com>     NEW>>>>Mobile : (Australia) 0413 431 874
Work URL: http://www.primenet.com.au/   Ego URL: http://pobox.com/~gcw/