From owner-freebsd-questions@FreeBSD.ORG Fri Sep 16 17:58:21 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA44016A41F for ; Fri, 16 Sep 2005 17:58:21 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4559543D45 for ; Fri, 16 Sep 2005 17:58:20 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j8GHwFFN038434; Fri, 16 Sep 2005 12:58:15 -0500 (CDT) (envelope-from dan) Date: Fri, 16 Sep 2005 12:58:15 -0500 From: Dan Nelson To: Doug Sampson Message-ID: <20050916175815.GE72150@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.10i Cc: "'freebsd-questions@freebsd.org'" Subject: Re: [Samba] getent & winbindd on FreeBSD 5.4 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: Fri, 16 Sep 2005 17:58:21 -0000 In the last episode (Sep 16), Doug Sampson said: > > That email is referring to the getent command inside the linux > > /compat tree. If you need that command to work, you will need to > > install and set up the appropriate *linux* libraries and files into > > /compat/linux/ . If this is your only problem, I'd recommend just > > not running linuxes getent command :) > > Does anyone know where I can get FreeBSD-native getent??? It isn't in > the ports system. Fresh Ports has it and it provides a link to the > http://www.domtools.com site but it seems to be inactive. FreeBSD doesn't come with a getent program. I was able to compile OpenSolaris' getent on FreeBSD with minimal problems, though. You'll have to remove support for ipnodes, project, and netmasks since those are Solaris-specific, remove the gettext code, and you'll need to provide a "putpwent" function (I used /usr/src/usr.sbin/pw/pwupd.c:fmtpwentry() instead ). http://cvs.opensolaris.org/source/xref/usr/src/cmd/getent/ > How can I verify that linux libraries have been installed? I looked > at this: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-lbc-insta > ll.html#LINUXEMU-LIBS-PORT. When I run the 'getent' command, it > doesn't complain about missing libraries. When I checked for > /compat/linux directory as follows: > > I noticed that the libnss_winbind.so and the libnss_wins.so aren't in > /usr/compat/linux/lib directory. Should I add them manually? If so, > from where? Or make a link to appropriate FreeBSD libs? You would need to install them manually, from either an existing linux system, or by extracting them out of an rpm. Are you really sure you need a "getent" command? -- Dan Nelson dnelson@allantgroup.com