NetBSD Problem Report #29772

From www@netbsd.org  Wed Mar 23 14:44:01 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id E935463B116; Wed, 23 Mar 2005 14:44:01 +0000 (UTC)
Message-Id: <20050323144401.E935463B116@narn.netbsd.org>
Date: Wed, 23 Mar 2005 14:44:01 +0000 (UTC)
From: keso@impul.se
Reply-To: keso@impul.se
To: gnats-bugs@netbsd.org
Subject: chpass temporary files in /etc not always unlinked
X-Send-Pr-Version: www-1.0

>Number:         29772
>Category:       bin
>Synopsis:       chpass temporary files in /etc not always unlinked
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 23 14:45:00 +0000 2005
>Closed-Date:    Sat Oct 07 20:09:29 +0000 2006
>Last-Modified:  Sat Oct 07 20:09:29 +0000 2006
>Originator:     Andreas Kling
>Release:        NetBSD-2.0
>Organization:
>Environment:
% uname -a
NetBSD pengin.rootgirl.net 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec  1 10:58:25 UTC 2004  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
If the editor invoked by 'chpass' is killed while editing, its temporary file in /etc is not removed, and owned by the user running chpass.

It's easy to fill up the /etc filesystem this way.
>How-To-Repeat:
1. chpass
2. ^Z
3. kill -9 %1
4. ls -l /etc/pw.*
>Fix:

>Release-Note:

>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: bin/29772: chpass temporary files in /etc not always unlinked
Date: Wed, 23 Mar 2005 07:27:44 -0800 (PST)

 On Wed, 23 Mar 2005 keso@impul.se wrote:

 > If the editor invoked by 'chpass' is killed while editing, its temporary
 > file in /etc is not removed, and owned by the user running chpass.

 Also, if you give it invalid data, such as attempting to change gid (as a
 normal user) and then choose "n" to not re-edit the file, then it will
 keep the /etc/pw.* file too. (At least with 1.6.2_STABLE.)

  Jeremy C. Reed

  	  	 	 technical support & remote administration
 	  	 	 http://www.pugetsoundtechnology.com/

State-Changed-From-To: open->closed
State-Changed-By: elad@netbsd.org
State-Changed-When: Sat, 07 Oct 2006 20:09:29 +0000
State-Changed-Why:
fixed


>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.