Hi,
I've got a legacy mount point in a container that is owned by nobody:nogroup and I can't rmdir it or chown it, even as root. Can anyone advise how I can remove this directory?
This situation arose when I specified a bind mount in the lxc .conf file without first creating a mount point in the container. The system must have created the bind point and mounted the bind mount when first starting up the container. Since then, I've removed that bind mount from the .conf file, so nothing is mounted at the mount point. Now in the container I'm left with the mount point.
I've got a legacy mount point in a container that is owned by nobody:nogroup and I can't rmdir it or chown it, even as root. Can anyone advise how I can remove this directory?
This situation arose when I specified a bind mount in the lxc .conf file without first creating a mount point in the container. The system must have created the bind point and mounted the bind mount when first starting up the container. Since then, I've removed that bind mount from the .conf file, so nothing is mounted at the mount point. Now in the container I'm left with the mount point.
Code:
root@photos:/mnt# whoami
root
root@photos:/mnt# ls -al
total 10
drwxr-xr-x 4 root root 4 Mar 13 21:25 .
drwxr-xr-x 21 root root 21 Mar 14 09:38 ..
drwxr-xr-x 3 nobody nogroup 3 Mar 13 09:18 Library
root@photos:/mnt# rm -rf Library
rm: cannot remove 'Library/Pictures': Permission denied
root@photos:/mnt# chown root Library
chown: changing ownership of 'Library': Operation not permitted