From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 18 07:35:49 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B77E716A4CE for ; Thu, 18 Dec 2003 07:35:49 -0800 (PST) Received: from gw.celabo.org (gw.celabo.org [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8276443D3F for ; Thu, 18 Dec 2003 07:35:38 -0800 (PST) (envelope-from nectar@celabo.org) Received: from madman.celabo.org (madman.celabo.org [10.0.1.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "madman.celabo.org", Issuer "celabo.org CA" (verified OK)) by gw.celabo.org (Postfix) with ESMTP id 0AE485482B; Thu, 18 Dec 2003 09:35:38 -0600 (CST) Received: by madman.celabo.org (Postfix, from userid 1001) id A2CE46D455; Thu, 18 Dec 2003 09:35:37 -0600 (CST) Date: Thu, 18 Dec 2003 09:35:37 -0600 From: "Jacques A. Vidrine" To: christoffer@trollcomputing.com Message-ID: <20031218153537.GD36221@madman.celabo.org> Mail-Followup-To: "Jacques A. Vidrine" , christoffer@trollcomputing.com, freebsd-hackers@freebsd.org References: <1071743510.3fe1821661a98@www.trollcomputing.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1071743510.3fe1821661a98@www.trollcomputing.com> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.4i-ja.1 cc: freebsd-hackers@freebsd.org Subject: Re: nsswitch/libnss_winbind.so problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2003 15:35:49 -0000 On Thu, Dec 18, 2003 at 03:31:50AM -0700, christoffer@trollcomputing.com wrote: > Hello all! > > I'm running FreeBSD v. 5.1 > I'm having problems getting commands like > chmod and chown to read winbind data. > > I've installed samba from ports with the > > make WITH_WINBIND_NSS=yes > > compile option. Did you also make WITH_WINBIND_NSS=yes install or just `make install' ? Port make options must be set for every stage (configure, build, install, package, etc). > I've also created a > /etc/nsswitch.conf file containing: > > passwd: files winbind > group: files winbind > > I've copied the : > /usr/ports/net/samba/work/samba-2.2.8a/source/nsswitch/libnss_winbind.so > to: > /usr/lib > (also tried /usr/local/lib) This is not necessary. If the port was correctly installed, you will have /usr/local/lib/nss_winbind.so.1. What is the output of pkg_info -L samba-\* | grep nss_winbind ? > I've done all the nessecary samba configurations, and can get user and groups > with : > wbinfo -u and -g. I've allso joined my NT domain with no problems, > so winbind is working properly. > > The thing is that commands like chmod and chown can not assign to the winbind > gathered user/group list. > > I belive these commands use the information from /etc/nsswitch.conf when they > get usernames and groupnames? > > I just get "invalid argument" when trying to chown a file to a user from the > winbind list. > > Please help me out! Do you see anything in syslog at LOG_DEBUG level? Cheers, -- Jacques Vidrine NTT/Verio SME FreeBSD UNIX Heimdal nectar@celabo.org jvidrine@verio.net nectar@freebsd.org nectar@kth.se