linux-f10-flashplugin
Ted Faber
faber at isi.edu
Thu Sep 29 23:13:51 UTC 2011
On Thu, Sep 29, 2011 at 03:01:44PM -0700, Jeremy Chadwick wrote:
> On Thu, Sep 29, 2011 at 02:40:09PM -0700, Ted Faber wrote:
> > On Thu, Sep 29, 2011 at 01:05:40PM -0700, Jeremy Chadwick wrote:
> > > On Thu, Sep 29, 2011 at 12:50:01PM -0700, Ted Faber wrote:
> > > > (npviewer.bin:5430): GLib-WARNING **: getpwuid_r(): failed due
> > > > to unknown user id (2139)
> > > > ...
> > > > I haven't explored the getpwuid_r thing.
> > >
> > > Running "id 2139" should return something other than "no such user". If
> > > not, your environment is looking up something that has such ownership.
> >
> > 2139 is my uid, and both linux and native FreeBSD seem to agree:
> >
> > $ /usr/bin/id
> > uid=2139(faber) gid=134(div7)
> > groups=134(div7),0(wheel),5(operator),80(www),169(dartgrp),259(sys413),335(cs555fac),356(arpisi),387(crisis),402(ilense),546(xcp),584(webdiv7),605(rfcdev),7001(abac)
> > $ /compat/linux/usr/bin/id
> > uid=2139 gid=134(div7) groups=0(wheel),5(operator),80(www),169,259,335,356,387,402,546,584,605,7001(abac)
>
> I can only speculate what's going on here, but there's a lot of
> inconsistencies in UID<->username and GID<->group name mappings shown in
> the Linux "id" program there.
>
> On a native CentOS box, /usr/bin/id *does* return a username alongside
> the uid number. Example:
>
> $ /usr/bin/id
> uid=1535(jdc) gid=1535(jdc) groups=101(cvsusers),110(netops),{snipped}
>
> So what I'm getting at: I don't know if the error from glib complaining
> about getpwuid_r() "unknown user id" is actually saying "the UID 2139
> is unknown", or if it's saying the passwd struct details aren't filled
> in completely. Taken from getpwuid_r(3) RETURN VALUES section:
>
> The functions getpwent_r(), getpwnam_r(), and getpwuid_r() return 0
> if no error occurred, or an error number to indicate failure.
> It is not an error if a matching entry is not found. (Thus, if
> result is NULL and the return value is 0, no matching entry exists.)
>
> Likewise I would expect the group names to be expanded as well -- it's
> expanding some of them, but not all. Why doesn't it know about GIDs
> 169, 259, 335, 356, 387, 402, 546, 584, and 605?
Um, because my NIS was incorrectly configured. Sorry for the blind
alley.
Adding nis and nisplus to the relevant entries in
/compat/linux/etc/nsswitch.conf means that linux id works dandy:
$ /compat/linux/usr/bin/id
uid=2139(faber) gid=134(div7) groups=0(wheel),5(operator),80(www),169(dartgrp),259(sys413),335(cs555fac),356(arpisi),387(crisis),402(ilense),546(xcp),584(webdiv7),605(rfcdev),7001(abac)
and the getpwnam_r error disappears.
The flashplugin still fails with the errors:
---
(process:52959): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(npviewer.bin:52959): Gtk-WARNING **: cannot open display: :0.0
*** NSPlugin Wrapper *** ERROR: failed to initialize plugin-side RPC client connection
NOTE: child process received `Goodbye', closing down
(process:52979): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(npviewer.bin:52979): Gtk-WARNING **: cannot open display: :0.0
*** NSPlugin Wrapper *** ERROR: failed to initialize plugin-side RPC client connection
NOTE: child process received `Goodbye', closing down
---
Sorry for the NIS noise.
--
Ted Faber
http://www.isi.edu/~faber PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20110929/7cc19296/attachment.pgp
More information about the freebsd-stable
mailing list