Subject: misc/357: mtree/special is not in sync with the world
To: None <gnats-admin>
From: Mark Weaver <mhw@cs.brown.edu>
List: netbsd-bugs
Date: 07/21/1994 19:50:12
>Number:         357
>Category:       misc
>Synopsis:       mtree/special is not in sync with the world
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   mhw
>Arrival-Date:   Thu Jul 21 19:50:08 1994
>Originator:     Mark Weaver
>Organization:
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu           | Brown University
PGP Key: finger mhw@cs.brown.edu       | Dept of Computer Science
>Release:        NetBSD 1.0-ALPHA (20-July-1994)
>Environment:

System: NetBSD cis-ts3-slip4.cis.brown.edu 1.0-ALPHA NetBSD 1.0-ALPHA (EXCELSIOR) #5: Wed Jul 20 20:32:14 EDT 1994 mhw@cis-ts3-slip4.cis.brown.edu:/usr/src/sys/arch/i386/compile/EXCELSIOR i386


>Description:
	There are several inconsistencies between mtree/special and
	mtree/4.4BSD.dist.  I started a patch, but I'm not 100% sure
	how to do the right thing, so I've only partially fixed the
	problem.  Although I've cut down the output of the security
	script quite a bit, it still prints the following for me,
	(although I've just run "mtree -def mtree/4.4BSD.dist -p / -u"):

	missing: ./etc/exports
	missing: ./var/account/acct
	missing: ./var/db/kvm_netbsd.db
	missing: ./var/log/secure
	missing: ./var/spool/ftp/bin/ls
	missing: ./var/spool/ftp/etc/group
	missing: ./var/spool/ftp/etc/localtime
	missing: ./var/spool/ftp/etc/master.passwd
	missing: ./var/spool/ftp/etc/passwd
	missing: ./var/spool/ftp/pub
	missing: ./var/spool/news

	The definition for /var/db/kvm_netbsd.db is in the file, but
	its parent directory is marked "ignore", and it says it's
	missing even though it's not.

	I'm also not sure how to deal with these other missing files
	and directories.  Maybe a flag should be added for each file
	which means "if the file doesn't exist, don't complain".

	I'm willing to finish up the work on this if someone tells me
	what to do.

>How-To-Repeat:
	(beware of this first command, and run as root)

	mtree -def /etc/mtree/4.4BSD.dist -p / -u
	mtree -e -p / -f /etc/mtree/special

	(note all the errors)
>Fix:
--- src/etc/mtree/special.mhw1	Sat Jun 18 23:23:20 1994
+++ src/etc/mtree/special	Thu Jul 21 22:14:05 1994
@@ -16,7 +16,6 @@
 etc		type=dir mode=0755 uname=root gname=wheel
 aliases		type=file mode=0644 uname=root gname=wheel
 aliases.db	type=file mode=0644 uname=root gname=wheel
-crontab		type=file mode=0644 uname=root gname=wheel
 csh.cshrc	type=file mode=0644 uname=root gname=wheel
 csh.login	type=file mode=0644 uname=root gname=wheel
 csh.logout	type=file mode=0644 uname=root gname=wheel
@@ -36,8 +35,10 @@
 mtree		type=dir mode=0755 uname=root gname=wheel
 special		type=file mode=0600 uname=root gname=wheel
 ..	#mtree
+namedb		type=dir mode=0755 uname=root gname=wheel
 named.boot	type=file mode=0644 uname=root gname=wheel
-netstart	type=file mode=0744 uname=root gname=wheel
+..	#namedb
+netstart	type=file mode=0644 uname=root gname=wheel
 passwd		type=file mode=644 uname=root gname=wheel
 printcap	type=file mode=0644 uname=root gname=wheel
 rc		type=file mode=0644 uname=root gname=wheel
@@ -65,14 +66,8 @@
 usr		type=dir mode=0755 uname=root gname=wheel
 bin		type=dir mode=0755 uname=root gname=wheel ignore
 ..	#usr/bin
-contrib		type=dir mode=0755 uname=root gname=wheel
-bin		type=dir mode=0755 uname=root gname=wheel ignore
-..	#usr/contrib/bin
-lib		type=dir mode=0755 uname=root gname=wheel ignore
-..	#usr/contrib/lib
-..	#usr/contrib
 games		type=dir mode=0755 uname=root gname=wheel
-hide		type=dir mode=0700 uname=games gname=wheel ignore
+hide		type=dir mode=0700 uname=games gname=games ignore
 ..	#usr/games/hide
 ..	#usr/games
 include		type=dir mode=0755 uname=root gname=wheel ignore
@@ -89,23 +84,11 @@
 lib		type=dir mode=0755 uname=root gname=wheel ignore
 ..	#usr/local/lib
 ..	#usr/local
-new		type=dir mode=0755 uname=root gname=wheel
-bin		type=dir mode=0755 uname=root gname=wheel ignore
-..	#usr/new/bin
-lib		type=dir mode=0755 uname=root gname=wheel ignore
-..	#usr/new/lib
-..	#usr/new
-old		type=dir mode=0755 uname=root gname=wheel
-bin		type=dir mode=0755 uname=root gname=wheel ignore
-..	#usr/old/bin
-lib		type=dir mode=0755 uname=root gname=wheel ignore
-..	#usr/old/lib
-..	#usr/old
 sbin		type=dir mode=0755 uname=root gname=wheel ignore
 ..	#usr/sbin
 share		type=dir mode=0755 uname=root gname=wheel ignore
 ..	#usr/share
-src		type=dir mode=0775 uname=root gname=wsrc ignore
+src		type=dir mode=0755 uname=root gname=wheel ignore
 ..	#usr/src
 ..	#usr
 
@@ -113,12 +96,18 @@
 account		type=dir mode=0755 uname=root gname=wheel
 acct		type=file mode=644 uname=root gname=wheel
 ..	#var/account
-at		type=dir mode=0755 uname=root gname=daemon ignore
+at		type=dir mode=0755 uname=root gname=wheel ignore
 ..	#var/at
 backups		type=dir mode=0755 uname=root gname=wheel ignore
 ..	#var/backups
+cron		type=dir mode=0755 uname=root gname=wheel
+log		type=file mode=0600 uname=root gname=wheel
+tabs		type=dir mode=0700 uname=root gname=wheel
+root		type=file mode=0600 uname=root gname=wheel
+..	#var/cron/tabs
+..	#var/cron
 db		type=dir mode=0755 uname=root gname=wheel ignore
-kvm_vmunix.db	type=file mode=0644 uname=root gname=wheel
+kvm_netbsd.db	type=file mode=0644 uname=root gname=wheel
 ..	#var/db
 log		type=dir mode=0755 uname=root gname=wheel
 secure		type=file mode=0600 uname=root gname=wheel
@@ -157,6 +146,6 @@
 ..	#var/spool/secretmail
 uucp		type=dir mode=0755 uname=uucp gname=daemon ignore
 ..	#var/spool/uucp
-uucppublic	type=dir mode=0777 uname=uucp gname=daemon ignore
+uucppublic	type=dir mode=1777 uname=uucp gname=daemon ignore
 ..	#var/spool/uucppublic
 ..	#var/spool
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------