Sebastian Beßler posted on Tue, 16 Mar 2010 17:24:55 +0100 as excerpted:

> Your way looks quite nice, I will look into it when I am back home. Btw.
> the ubuntu manpage of chroot (at work I use ubuntu) does not mention
> --userspec (or maybe I am still to dumb to use man ;-)

It's possible the --userspec option is relatively new to chroot, tho I'd 
not expect so.  FWIW I'm using ~amd64, so have never versions of a lot of 
packages than stable will.

It's also possible that ubuntu is using an old (or possibly POSIX-only) 
manpage.  What does chroot --help list?  Here, --userspec is the first 
option listed (the other one besides help and version being --groups, 
which takes a list of supplementary groups that the user will appear in, 
while in the chroot).

One thing that's unclear to me is whether the userspec and groups 
parameters use the IDs from the running system or the chroot, tho I 
suspect it's the running system (I started with the same passwd, etc files 
in both, here, because as I said I need a full config for my usage and 
that was most convenient).

I did notice that I had to use the actual UID:GID numbers, altho the 
manpage said names should work too.  I figured that was due to some 
vagaries of configuration, but finding and using the numbers was no big 
deal, so I didn't worry about it.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


Reply via email to