From owner-freebsd-questions@FreeBSD.ORG Wed Aug 27 16:48:16 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EEF5106568B for ; Wed, 27 Aug 2008 16:48:16 +0000 (UTC) (envelope-from chris@smartt.com) Received: from barium.smartt.com (barium.smartt.com [69.67.187.30]) by mx1.freebsd.org (Postfix) with ESMTP id 1D9038FC0C for ; Wed, 27 Aug 2008 16:48:15 +0000 (UTC) (envelope-from chris@smartt.com) Received: from [69.31.174.220] (unknown [69.31.174.220]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by barium.smartt.com (Postfix) with ESMTPS id 007C510E47F; Wed, 27 Aug 2008 09:48:04 -0700 (PDT) Message-ID: <48B5854C.7060509@smartt.com> Date: Wed, 27 Aug 2008 09:48:12 -0700 From: Chris St Denis User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Dan Nelson References: <20080827021935.T59147@phantom.math.miami.edu> <20080827153410.GD26653@dan.emsphone.com> In-Reply-To: <20080827153410.GD26653@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: jef moskot , freebsd-questions@freebsd.org Subject: Re: messagebus user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2008 16:48:16 -0000 Dan Nelson wrote: > In the last episode (Aug 27), jef moskot said: > >> We just upgraded to a new server (FreeBSD 7.0) and in our passwd file >> is the user "messagebus" (there's also a group). >> >> What's this for and can the UID be changed? It's got the same number >> as one of our oldest users and we're trying to determine which UID >> would be easier to switch. >> >> While this obviously has something to do with D-BUS (whatever that >> is), it's nothing we installed "on purpose". If it's not a part of >> the default system, it probably got bundled in as a dependency during >> an large port make. >> > > You should be able to change its uid by deinstalling dbus, then editing > /usr/ports/devel/dbus/pkg-install, changing the uid in that script > to an unused ID, and reinstalling. > > All the userids created by ports should be listed in /usr/ports/UIDs > and GIDs, so you can check to see if any other ports might conflict > with existing users. Unfortunately, the ports themselves don't use > those files during the install, so you can't just edit that and be > done. You have to fix each port individually. > > Keep in mind you will probably have the same problem when you upgrade the port. Portsnap/csup will overwrite your change so every time you upgrade you'll have to change it again. May be easier to just change the user's UID once. Should be doable pretty easily in one shot with a command like find /usr/home -user 556 -exec chown thenewuserid "{}" \;