chown silently fails to respect NSS

Chris Stankevitz chrisstankevitz at gmail.com
Thu Jun 25 18:25:19 UTC 2015


On Tue, Jun 23, 2015 at 11:43 AM, Chris Stankevitz
<chrisstankevitz at gmail.com> wrote:
> Why is chown is silently failing to chown a file to a winbind user
> that is listed in 'getent passwd'?

> root at zinc:~/temp # getent passwd MYDOMAIN\\cstankevitz
> MYDOMAIN\cstankevitz:*:4294967295:4294967295:Chris
> Stankevitz:/home/MYDOMAIN/cstankevitz:/bin/false
>
> root at zinc:~/temp # chown -v -v MYDOMAIN\\cstankevitz file.txt
>
> root at 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


More information about the freebsd-questions mailing list