[lxc-devel] namespaces and lxc
Serge Hallyn
serge.hallyn at ubuntu.com
Mon Apr 22 15:29:16 UTC 2013
Quoting Andy Johnson (johnsonzjo at gmail.com):
> Hello,
> I read your posts, thanks a lot for the good and detailed info and examples.
>
> >When a new user namespace is created, the task populating it starts >as
> userid -1, nobody.
>
> I don't understand something: why nobody is userid -1 ?
> On fedora 18 we have:
> cat /etc/passwd | grep nobody
> nobody:x:99:99:Nobody:/:/sbin/nologin
> nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
>
> Now it seems to me that userid of nobody is 99 here, according to this doc
> about /etc/passwd format:
> http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/
The name doesn't matter. The number matters. The number is known
in the kernel. The name is purely up to userspace.
More information about the lxc-devel
mailing list