From owner-freebsd-ports@FreeBSD.ORG Tue Apr 1 05:35:37 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AD7F4190 for ; Tue, 1 Apr 2014 05:35:37 +0000 (UTC) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7CE1EE98 for ; Tue, 1 Apr 2014 05:35:37 +0000 (UTC) Received: by mail-ig0-f181.google.com with SMTP id h18so4428980igc.2 for ; Mon, 31 Mar 2014 22:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xJ6fQcQDwNVN8AqSTXhn0JYxeSJjF0BlQGdc/NIGR5o=; b=DTKmR/MhENNbADXj83tWz1JqGlcC6OvF1UWCb0Ltn1l1HN3wvvPIrebMhXjGvS8fag DXPrvZe6aGOOfIQZrV24X5J7EGoel/itCAEF6QxKrEv3sg47HECbFQrBzqtWkwRwLAdF QYwZ8QV3norFeevKF4Dt+7lwnRBTfU6gSVn47fVe/PzJrAHKc94O3nkBr48AAi375CUy XYH5w1kq3iDF8Qae3YsP3jtlsuplGrOm5SmPylDuK6HD1q0CtiN0bnzFoAJB57Zdf+uQ 8MOtI30JkDTY98S1SRz6xQwcru4ISEgSfMSrLiW4LDaaoj6Kdemdo7xvOv3w2UFJFZP6 asiQ== MIME-Version: 1.0 X-Received: by 10.42.20.193 with SMTP id h1mr11229096icb.70.1396330536892; Mon, 31 Mar 2014 22:35:36 -0700 (PDT) Received: by 10.50.111.79 with HTTP; Mon, 31 Mar 2014 22:35:36 -0700 (PDT) In-Reply-To: <1396300437.13593.101149621.7585F27C@webmail.messagingengine.com> References: <1394852101.4088.94721153.6A3EC0B2@webmail.messagingengine.com> <1396300437.13593.101149621.7585F27C@webmail.messagingengine.com> Date: Tue, 1 Apr 2014 00:35:36 -0500 Message-ID: Subject: Re: net-im/prosody post install error From: Scot Hetzel To: Ross Penner Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2014 05:35:37 -0000 On Mon, Mar 31, 2014 at 4:13 PM, Ross Penner wrote: > > > On Sat, 15 Mar 2014, at 08:47 AM, Scot Hetzel wrote: >> On Fri, Mar 14, 2014 at 9:55 PM, Ross Penner wrote: >> > When I try to build prosody (on FreeBSD 9.2-RELEASE-p3), I get the >> > following error once it gets to the installation phase. The error >> > references already having a prosody user and group. They were created >> > the first time I tried to install and this message is from my second >> > attempt. >> > >> > ===> Installing for prosody-0.9.3 >> > /bin/sh /usr/ports/net-im/prosody/work/pkg-install prosody-0.9.3 >> > PRE-INSTALL >> > prosody:*:242: >> > You already have a group "prosody", so I will use it. >> > pw: user 'prosody' already exists >> > Adding user "prosody" failed... >> > *** [pre-install] Error code 1 >> > >> > >> > Thanks for any help or insight you can provide. >> >> The pkg-install script should be detecting the user, what does the >> following command show? >> >> /usr/sbin/pw user show prosody ; echo $? >> >> On my system with no prosody user it returns with: >> >> pw: no such user `prosody` >> 67 >> >> It should return with a value of zero, when the port is installed: >> >> # /usr/sbin/pw user show prosody ; echo $? >> prosody:*:242:1::0:0:Prosody XMMP Server:/nonexistent:/usr/sbin/nologin >> 0 >> >> I have tried installing/deinstalling/re-installing the port, and don't >> get the prosody user already exists error. >> > > ok, so I run "/usr/sbin/pw user show prosody ; echo $?" and I get the > same error you do on your system with no user. When I look at > /etc/passwd, the prosody user is there: > > prosody:*:242:1:Prosody XMPP Server:/nonexistent:/usr/sbin/nologin > > Also, when I try to remove the prosody user, it fails: > > # pw userdel -n prosody > pw: no such user `prosody' Is the prosody user in /etc/master.passwd? Try running: /usr/sbin/pwd_mkdb -p /etc/master.passwd to re-create the password databases and /etc/passwd. Note: - make backups of /etc/passwd, /etc/spwd.db and /etc/pwd.db - make sure that all of your users are in /etc/master.passwd -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.