Subject: misc/1075: src/etc/mtree/special does not match NetBSD reality
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Thorsten Lockert <tholo@SigmaSoft.COM>
List: netbsd-bugs
Date: 05/21/1995 17:50:04
>Number: 1075
>Category: misc
>Synopsis: src/etc/mtree/special does not match NetBSD reality
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun May 21 17:50:02 1995
>Originator: Thorsten Lockert
>Organization:
SigmaSoft, Th. Lockert
>Release: May 6th, 1995
>Environment:
System: NetBSD gandalf.sigmasoft.com 1.0A NetBSD 1.0A (GANDALF) #1: Sun May 7 21:49:27 PDT 1995 tholo@gandalf.sigmasoft.com:/usr/src/sys/arch/i386/compile/GANDALF i386
>Description:
When /etc/security is being run as part of the daily cron jobs,
it reports multiple missing directories / files and some that are
with wrong owner/modes as compared to how they are really installed
>How-To-Repeat:
Run /etc/security
>Fix:
Apply the following patch to src/etc/mtree/special
*** src/etc/mtree/special.orig Fri Apr 21 02:48:29 1995
--- src/etc/mtree/special Sun May 21 17:34:19 1995
***************
*** 66,87 ****
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
.. #usr/games/hide
.. #usr/games
! include type=dir mode=0755 uname=root gname=wheel ignore
.. #usr/include
lib type=dir mode=0755 uname=root gname=wheel ignore
.. #usr/lib
! libdata type=dir mode=0755 uname=root gname=wheel ignore
! .. #usr/libdata
libexec type=dir mode=0755 uname=root gname=wheel ignore
.. #usr/libexec
local type=dir mode=0755 uname=root gname=wheel
--- 66,87 ----
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=games ignore
.. #usr/games/hide
.. #usr/games
! include type=dir mode=0755 uname=bin gname=bin ignore
.. #usr/include
lib type=dir mode=0755 uname=root gname=wheel ignore
.. #usr/lib
! #libdata type=dir mode=0755 uname=root gname=wheel ignore
! #.. #usr/libdata
libexec type=dir mode=0755 uname=root gname=wheel ignore
.. #usr/libexec
local type=dir mode=0755 uname=root gname=wheel
***************
*** 90,112 ****
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
.. #usr/src
.. #usr
--- 90,112 ----
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=wheel ignore
.. #usr/src
.. #usr
***************
*** 114,120 ****
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
.. #var/at
backups type=dir mode=0755 uname=root gname=wheel ignore
.. #var/backups
--- 114,120 ----
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=wheel ignore
.. #var/at
backups type=dir mode=0755 uname=root gname=wheel ignore
.. #var/backups
***************
*** 158,163 ****
.. #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
.. #var/spool/uucppublic
.. #var/spool
--- 158,163 ----
.. #var/spool/secretmail
uucp type=dir mode=0755 uname=uucp gname=daemon ignore
.. #var/spool/uucp
! uucppublic type=dir mode=01777 uname=uucp gname=daemon ignore
.. #var/spool/uucppublic
.. #var/spool
>Audit-Trail:
>Unformatted: