<br><br><div class="gmail_quote">On Dec 17, 2007 9:47 AM, Maxim Soldatov <<a href="mailto:makc@makc.name">makc@makc.name</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've got strange problem with centos (as well as rhel btw) chrooted<br>environment.</blockquote><div><br>That's the behaviour that chroot is supposed to have.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes, I even do not have /etc/ directory inside testcase/ , but id shows<br>groups from the _host_ root account.</blockquote><div><br>I see you saying "host" (as opposed to "guest"), but chroot is not a VM environment. When you chroot to a jail, you user id, group id, and additional groups will be still the same as they were before. They're inherited.
<br><br></div></div>The issue with it showing the id's as numbers or names is that if the files in /etc/ are not present in the chroot, it won't be able to look them up, then it will show the numbers only.<br><br>
If you need some different id's, maybe you should su before/after chrooting. Or maybe what you need is actually a VM environment, in that case you should try Xen.<br><br>Regards,<br>Filipe<br><br>