[ https://issues.apache.org/jira/browse/HDFS-1869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032619#comment-13032619 ]
Daryn Sharp commented on HDFS-1869: ----------------------------------- Yes, it should. I worried about the same thing, but I believe I found existing code that implicitly assumed 0300 on dir creates and/or the namenode didn't bother checking permissions as it created the intermediate directories. My memory is a bit foggy, I'll double check. > mkdirs should use the supplied permission for all of the created directories > ---------------------------------------------------------------------------- > > Key: HDFS-1869 > URL: https://issues.apache.org/jira/browse/HDFS-1869 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.23.0 > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Attachments: HDFS-1869.patch > > > Mkdirs only uses the supplied FsPermission for the last directory of the > path. Paths 0..N-1 will all inherit the parent dir's permissions -even if- > inheritPermission is false. This is a regression from somewhere around > 0.20.9 and does not follow posix semantics. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira