[yocto] User id/group not quite right?
Gary Thomas
gary at mlbassoc.com
Wed Feb 6 08:40:37 PST 2013
Just checking on the X11 user 'xuser' which should be created
with a bunch of groups via this recipe snippet:
USERADD_PARAM_${PN} = "--create-home \
--groups video,tty,audio \
--user-group xuser"
However, when I log in as 'xuser', I don't see them?
login: xuser
$ id
uid=1001(xuser) gid=1001(xuser) groups=1001(xuser)
$ grep xuser /etc/group
tty:x:5:demo,xuser
audio:x:29:demo,xuser,pulse
video:x:44:demo,xuser
xuser:x:1001:
They do seem to be set though:
$ python
Python 2.7.3 (default, Jan 15 2013, 10:27:28)
[GCC 4.7.2] on linux2
T ype "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getgroups()
[5, 29, 44, 1001]
Looks like the busybox 'id' applet is broken?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
More information about the yocto
mailing list