[lxc-users] Question on strange ls -lh

Pierre Couderc pierre at couderc.eu
Sat Jan 5 22:20:52 UTC 2019


Strange ls -lh :

On the host :

root at server:/# ls -lh /var/lib/lxd/containers/bind/rootfs/
total 0
.......
drwxr-xr-x 1 231072 231072    0 Oct  4 07:25 opt
drwxr-xr-x 1 231072 231072    0 Jun 26  2018 proc
drwx------ 1 231072 231072  102 Jan  5 19:19 root
...

The same directory in the "bind" container :

root at bind:/etc/bind/normal# ls -lh /
total 0
....
drwxr-xr-x   1 root   root       0 Oct  4 07:25 opt
dr-xr-xr-x 250 nobody nogroup    0 Oct 30 09:21 proc
drwx------   1 root   root     102 Jan  5 19:19 root
...

Question :

1- why /proc is owned by nobody.nogroup inside the container and on the 
host by  231072.231072 , which seems to be root.root ?

2- how can this occur ?

The container is in bad state as "ps -aux" work no more...

Thanks all,

and Happy new year to all, and particularly the team of brave developers...

PC





More information about the lxc-users mailing list