I have ssh'd into a CentOS 7 docker container as root. I am trying to create a directory (
mkdir mydir/test) but I am getting a permission denied error. I tested to make sure I was root with
Then I looked at the permissions:
drwxr-xr-x 2 root root 64 Apr 10 22:14 mydir
I believe, from the first
rwx, that root has privileges to create directories inside this directory, but I cannot and do not understand why.
I also thought that maybe giving the group write permissions would work, so I tried
chown 020 mydir, but this resulted in
changing permissions of ‘mydir’: Operation not permitted. Can someone explain what I'm doing wrong?