Hi Gao, I appreciate your quick reply.>you can try create a file in container, and on host, the owner of thisfile is uid=1000.>and on the other side, if a file's owner is uid 1000 on host. in thiscontainer, you will>see the owner of this file is uid 0.I tried creating a file inside the container with root user. When I checked uid of the file on the host, it still gives me uid as 0. What can be wrong? Thanks and Regards, Saurabh Deochake.
On 11/11/2013 05:52 PM, Saurabh Deochake wrote:> Hi Gao, > > I appreciate your quick reply. > >>you can try create a file in container, and on host, the owner of this file is uid=1000. >>and on the other side, if a file's owner is uid 1000 on host. in this container, you will >>see the owner of this file is uid 0. > > I tried creating a file inside the container with root user. When I checked uid of the file on the host, > it still gives me uid as 0. > What can be wrong? >In this situation, it must be a bug. but in my environment, everything works ok. chould you show me the result of stat this new file inside container and on the host?
Hi Gao, I checked the output of "lxc-checkconfig" command and it showed --- Namespaces --- Namespaces: enabled Utsname namespace: enabled Ipc namespace: enabled Pid namespace: enabled *User namespace: missing* Network namespace: enabled Multiple /dev/pts instances: enabled Here it shows that User namespace support is missing. I tried to check for Namespaces Support in kernel menuconfig. It has support for following namespaces only: --- Namespaces support [*] UTS namespace [*] IPC namespace [*] PID Namespaces [*] Network namespace There is no User Namespace support. So do I need to patch the kernel for user namespace support? What should I do in order to get user namespace working? Following are my system details: OS: Fedora 19 Kernel: 3.9.5 Thanks and Regards, Saurabh Deochake.