From owner-freebsd-questions@FreeBSD.ORG Sat Apr 25 12:45:01 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2B081065675 for ; Sat, 25 Apr 2009 12:45:01 +0000 (UTC) (envelope-from meta@club.kyutech.ac.jp) Received: from sapphire.club.kyutech.ac.jp (sapphire.club.kyutech.ac.jp [131.206.108.7]) by mx1.freebsd.org (Postfix) with ESMTP id B7E438FC08 for ; Sat, 25 Apr 2009 12:45:01 +0000 (UTC) (envelope-from meta@club.kyutech.ac.jp) Received: from localhost (localhost [127.0.0.1]) by sapphire.club.kyutech.ac.jp (Postfix) with ESMTP id AC57E1146E; Sat, 25 Apr 2009 21:12:46 +0900 (JST) X-Virus-Scanned: amavisd-new at club.kyutech.ac.jp Received: from club.kyutech.ac.jp (rose.club.kyutech.ac.jp [131.206.108.6]) by sapphire.club.kyutech.ac.jp (Postfix) with ESMTP id BFF51114DF; Sat, 25 Apr 2009 21:12:32 +0900 (JST) Date: Sat, 25 Apr 2009 21:12:31 +0900 From: Kouichiro Iwao To: Ruben de Groot Message-ID: <20090425121231.GC31588@club.kyutech.ac.jp> References: <20090423073229.GA87987@club.kyutech.ac.jp> <20090423091027.GA47290@ei.bzerk.org> <20090423181711.GH40655@hal.rescomp.berkeley.edu> <20090425083416.GA31588@club.kyutech.ac.jp> <20090425092222.GA75517@ei.bzerk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Disposition: inline In-Reply-To: <20090425092222.GA75517@ei.bzerk.org> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: questions@freebsd.org Subject: Re: how to deceive programs as if I were a local 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: Sat, 25 Apr 2009 12:45:02 -0000 On Sat, Apr 25, 2009 at 11:22:22AM +0200, Ruben de Groot wrote: > On Sat, Apr 25, 2009 at 05:34:16PM +0900, Kouichiro Iwao typed: > > On Thu, Apr 23, 2009 at 11:17:11AM -0700, Chris Cowart wrote: > > > This error means the program tried to look up some name information for > > > your UID number and failed. You need to configure the data source in > > > /etc/nsswitch.conf: > > > > > > group: files cache ldap > > > passwd: files cache ldap > > > > I've already set like you showed. > > But, not for /compat/linux/etc/nsswitch.conf . > > > > Configuring nsswitch.conf in linux emulation environment, > > the program worked properly. I did't know I had to set > > /compat/linux/etc/nsswitch.conf for linux binary compatibility. > > That's interesting. Was there a /compat/linux/etc/nsswitch.conf before? > I think that if it's not there, the linux emulation layer should take > the system's /etc/nsswitch.conf as default. But I might be wrong(TM). > Sorry, I misunderstood what you meant. # cd /compat/linux/etc # mv nsswitch.conf nsswitch.conf.dummy And I ran the sample program, the linux binary resuled success. The linux emulator seems to take the /etc/nsswitch.conf. However, it is true that /compat/linux/etc/nsswitch.conf had already existed when I was going to edit. -- Iwao, Koichiro