From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 18 16:00:15 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 109AC10656D1 for ; Wed, 18 Mar 2009 16:00:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 469678FC23 for ; Wed, 18 Mar 2009 16:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2IG0Cc3016691 for ; Wed, 18 Mar 2009 16:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2IG0CXv016690; Wed, 18 Mar 2009 16:00:12 GMT (envelope-from gnats) Resent-Date: Wed, 18 Mar 2009 16:00:12 GMT Resent-Message-Id: <200903181600.n2IG0CXv016690@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kirk Strauser Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FDC510656CD for ; Wed, 18 Mar 2009 15:56:14 +0000 (UTC) (envelope-from kirk@kanga.honeypot.net) Received: from kanga.honeypot.net (kanga.honeypot.net [IPv6:2001:470:a80a:1:21f:d0ff:fe22:b8a8]) by mx1.freebsd.org (Postfix) with ESMTP id 025858FC12 for ; Wed, 18 Mar 2009 15:56:13 +0000 (UTC) (envelope-from kirk@kanga.honeypot.net) Received: from localhost (localhost [127.0.0.1]) by kanga.honeypot.net (Postfix) with ESMTP id 4A72E3763D for ; Wed, 18 Mar 2009 10:56:13 -0500 (CDT) Received: from kanga.honeypot.net ([127.0.0.1]) by localhost (kanga.honeypot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CGl+pYzu-2T4 for ; Wed, 18 Mar 2009 10:56:11 -0500 (CDT) Received: by kanga.honeypot.net (Postfix, from userid 1000) id 0F2103762E; Wed, 18 Mar 2009 10:56:11 -0500 (CDT) Message-Id: <20090318155611.0F2103762E@kanga.honeypot.net> Date: Wed, 18 Mar 2009 10:56:11 -0500 (CDT) From: Kirk Strauser To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/132778: net-im/ejabberd's cookie file has wrong ownership and perms X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kirk Strauser List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2009 16:00:16 -0000 >Number: 132778 >Category: ports >Synopsis: net-im/ejabberd's cookie file has wrong ownership and perms >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 18 16:00:11 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Kirk Strauser >Release: FreeBSD 7.1-STABLE amd64 >Organization: The Strauser Group >Environment: System: FreeBSD kanga.honeypot.net 7.1-STABLE FreeBSD 7.1-STABLE #0: Wed Mar 4 17:20:17 CST 2009 root@kanga.honeypot.net:/usr/obj/usr/src/sys/KANGA amd64 >Description: When installing the net-im/ejabberd port, it creates a file called /usr/local/lib/erlang/lib/ejabberd-2.0.3/.erlang.cookie . The problem is that ejabberd wants it to be owned by ejabberd:ejabberd with perms 400, but it gets owned by root:wheel with perms 444 by default. This causes it not to start: # su ejabberd -c "/usr/local/sbin/ejabberdctl --node ejabberd@localhost live" [snip] {error_logger,{{2009,3,18},{10,24,44}},"inet_config: file ~s not found~n",["/usr/local/etc/ejabberd/inetrc"]} {error_logger,{{2009,3,18},{10,24,44}},"Cookie file /usr/local/lib/erlang/lib/ejabberd-2.0.3/.erlang.cookie must be accessible by owner only",[]} >How-To-Repeat: Reinstall ejabberd and erlang multiple times and restore the config from tape to see why ejabberd no longer starts. Stare at debugging output until your eyes cross and wonder why it hates you. >Fix: # chown ejabberd:ejabberd /usr/local/lib/erlang/lib/ejabberd-2.0.3/.erlang.cookie # chmod 400 /usr/local/lib/erlang/lib/ejabberd-2.0.3/.erlang.cookie >Release-Note: >Audit-Trail: >Unformatted: