I created some directories with the command mkdir -pm 700 /tmp/a/b/cI was surprised to find that /tmp/a had permissions 775 rather than the 700, I had requested.Is there some reason for mkdir to only apply the specified mode to the last directory created and ignore it for the parent directories?
Why does `mkdir -pm` not set the permissions I asked for?
permissions;mkdir