From owner-freebsd-questions@freebsd.org Thu Jun 25 18:25:19 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CED4C98CEA4 for ; Thu, 25 Jun 2015 18:25:19 +0000 (UTC) (envelope-from chrisstankevitz@gmail.com) Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com [IPv6:2a00:1450:4010:c04::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 595AF1236 for ; Thu, 25 Jun 2015 18:25:19 +0000 (UTC) (envelope-from chrisstankevitz@gmail.com) Received: by lbbvz5 with SMTP id vz5so50745034lbb.0 for ; Thu, 25 Jun 2015 11:25:17 -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 :content-type; bh=5kSbfBK7bZe8EBtoDZK6xN7LHun+Ie49f//fDwf03sw=; b=LXP3VCvc3emzvNZEJu7PDbrq/kMRP82N++TCi2Xfo6KjFA7lxf6YEoITDWkg9IPwao mNVgSLPwyGckjLZri1Kdut98ryIolW0h1WySPwDRhxuqeBm5pPW4Cjk/mFO0xUBbyFLS WjjO6d3e1wcw9WZc/GGtPhoDh6Iz/Rf784j7iKTwr0pEeV28Eqa/UidZFbA17vheEUvI KVwYCIph+0qN3+ixbS6tAyR4wVcghy2pyB+5RHQqHrn+HxzDgX8coq5XY5mL+AC/1km7 ldvaOwAok1LBf6eK3dsyFoK3zT7zgQUt5kWEuo1w8wXANiNHPj5nqUiRWboKxa9aqS8u Sg/A== MIME-Version: 1.0 X-Received: by 10.152.206.75 with SMTP id lm11mr45117726lac.41.1435256717455; Thu, 25 Jun 2015 11:25:17 -0700 (PDT) Received: by 10.25.42.146 with HTTP; Thu, 25 Jun 2015 11:25:17 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Jun 2015 11:25:17 -0700 Message-ID: Subject: Re: chown silently fails to respect NSS From: Chris Stankevitz To: freebsd-questions Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2015 18:25:19 -0000 On Tue, Jun 23, 2015 at 11:43 AM, Chris Stankevitz wrote: > Why is chown is silently failing to chown a file to a winbind user > that is listed in 'getent passwd'? > root@zinc:~/temp # getent passwd MYDOMAIN\\cstankevitz > MYDOMAIN\cstankevitz:*:4294967295:4294967295:Chris > Stankevitz:/home/MYDOMAIN/cstankevitz:/bin/false > > root@zinc:~/temp # chown -v -v MYDOMAIN\\cstankevitz file.txt > > root@zinc:~/temp # ls -l > total 1 > -rw-r--r-- 1 root wheel 0 Jun 23 11:34 file.txt - chown silently fails when you pass the ridiculous UID 4294967295 (2^32-1) - winbind was populating UID 4294967295 because I failed to supply an idmap backend/range for the default domain. This is apparently needed to capture a special pseudo-domain called BUILTIN. Chris