NetBSD Problem Report #18476

Received: (qmail 13165 invoked by uid 605); 30 Sep 2002 16:50:04 -0000
Message-Id: <3169-1033404533@rainier.reedmedia.net>
Date: Mon, 30 Sep 2002 09:48:54 -0700
From: reed@reedmedia.net
Sender: gnats-bugs-owner@netbsd.org
Reply-To: reed@reedmedia.net
To: gnats-bugs@gnats.netbsd.org
Subject: add /etc/skel to mtree special
X-Send-Pr-Version: 3.95

>Number:         18476
>Category:       misc
>Synopsis:       add /etc/skel to special mtree
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 30 16:51:00 +0000 2002
>Closed-Date:    Sat Sep 23 09:43:05 +0000 2006
>Last-Modified:  Sat Sep 23 09:45:00 +0000 2006
>Originator:     
>Release:        NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:


System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
For some strange reason my /etc and sub-directories were world-writable
when I unpacked etc.tgz. I don't know why (like some umask issue)
and I can't reproduce. But anyways, when cleaning this up, I saw
my /etc/skel was world-writable but not reported in my security report.
>How-To-Repeat:
chmod 777 /etc/skel # and wait for security report
>Fix:

I am unclear on who or what decides optional, but here is a patch.

--- special.orig	Mon Sep 30 09:38:01 2002
+++ special	Mon Sep 30 09:42:14 2002
@@ -226,6 +226,7 @@
 ./etc/services			type=file mode=0644
 ./etc/shells			type=file mode=0644
 ./etc/shosts.equiv		type=file mode=0600 optional
+./etc/skel			type=dir  mode=0755
 ./etc/spwd.db			type=file mode=0600 tags=exclude
 ./etc/ssh			type=dir  mode=0755 optional
 ./etc/ssh/ssh_config		type=file mode=0644 optional
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: elad@netbsd.org
State-Changed-When: Sat, 23 Sep 2006 09:43:05 +0000
State-Changed-Why:
patch applied, thanks!


From: Elad Efrat <elad@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/18476 CVS commit: src/etc/mtree
Date: Sat, 23 Sep 2006 09:42:32 +0000 (UTC)

 Module Name:	src
 Committed By:	elad
 Date:		Sat Sep 23 09:42:32 UTC 2006

 Modified Files:
 	src/etc/mtree: special

 Log Message:
 PR/18476: reed at reedmedia dot net: add /etc/skel to special mtree
 Slightly different patch applied (entry was made optional), thanks!


 To generate a diff of this commit:
 cvs rdiff -r1.101 -r1.102 src/etc/mtree/special

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.