From watanabe@crayon.planet.sci.kobe-u.ac.jp Thu Feb 25 00:49:06 1999
Return-Path: <watanabe@crayon.planet.sci.kobe-u.ac.jp>
Received: from crayon.planet.sci.kobe-u.ac.jp (crayon.planet.sci.kobe-u.ac.jp [133.30.53.130])
	by hub.freebsd.org (Postfix) with ESMTP id 7A9EC14CCE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 25 Feb 1999 00:49:05 -0800 (PST)
	(envelope-from watanabe@crayon.planet.sci.kobe-u.ac.jp)
Received: (from watanabe@localhost)
	by crayon.planet.sci.kobe-u.ac.jp (8.9.2/3.7W-mx) id RAA02026;
	Thu, 25 Feb 1999 17:48:47 +0900 (JST)
Message-Id: <199902250848.RAA02026@crayon.planet.sci.kobe-u.ac.jp>
Date: Thu, 25 Feb 1999 17:48:47 +0900 (JST)
From: watanabe@komadori.planet.sci.kobe-u.ac.jp
Sender: watanabe@crayon.planet.sci.kobe-u.ac.jp
Reply-To: watanabe@komadori.planet.sci.kobe-u.ac.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: Jserver has a wrong owner.
X-Send-Pr-Version: 3.2

>Number:         10254
>Category:       ports
>Synopsis:       Jserver has a wrong owner.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 25 10:20:06 PST 1999
>Closed-Date:    Fri Mar 5 00:08:36 PST 1999
>Last-Modified:  Fri Mar  5 00:09:10 PST 1999
>Originator:     Takeshi WATANABE
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
Kobe University, Kobe, Japan
>Environment:

  + The user "wnn" did not exist on the system.
  + Install ja-Wnn-4.2 from packages (not ports).
  + Let the install script make the user "wnn".

>Description:

  Jserver will be a SetUID root program.  That's very dangerous.

>How-To-Repeat:

  Only packages has this problem.  There is no problem if you install
from ports.

  Only the first time of installing ja-Wnn-4.2, this problem will occurs.
If you pkg_delete and pkg_add again, this problem will disappear.

>Fix:

  Apply the following patch.

--- /usr/ports/japanese/Wnn/pkg/INSTALL.orig	Thu Feb 11 08:21:39 1999
+++ /usr/ports/japanese/Wnn/pkg/INSTALL	Thu Feb 25 15:45:00 1999
@@ -122,6 +122,7 @@
 	;;
     esac
 
+    chown wnn $wnnserver
     for dir in $sys_dirs; do
       $wnntouch $dir/*
     done

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: taoka 
State-Changed-When: Fri Mar 5 00:08:36 PST 1999 
State-Changed-Why:  
Committed. Thanks!!!! 
>Unformatted:
