[ https://issues.apache.org/jira/browse/HADOOP-8235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246714#comment-13246714 ]
Bikas Saha commented on HADOOP-8235: ------------------------------------ The proposal is to emulate Hadoop read(r), write(w), execute(x) permissions on top of the Windows ACL based access control. RawLocalFileSystem could be improved to map rwx to Windows permissions and set them for the users and groups using the “icacls” Windows command. Similar commands would need to found for other operations. E.g. we can use “takeown” command for changing the ownership of a file/dir. There is no concept of “others” on Windows but that could be emulated using either the built-in “Everyone” or “AuthenticatedUsers” Windows groups. RawLocalFileStatus would map “others” to one of these groups when running on Windows. Alternatively, Hadoop daemons could always assign no permissions to "others" on Windows or make other permissions == group permissions. When a user creates a file on Unix then it gets group permissions based on the default group of the user. On Windows, such a file could inherit permissions ACL's from multiple groups (say machine Administrators etc) and we might need to see how the default group permissions can be made to work. Lastly, Hadoop uses java setWritable/setReadable etc commands which dont work in some cases for Windows. > Support file permissions and ownership on Windows for RawLocalFileSystem > ------------------------------------------------------------------------ > > Key: HADOOP-8235 > URL: https://issues.apache.org/jira/browse/HADOOP-8235 > Project: Hadoop Common > Issue Type: Sub-task > Components: native > Affects Versions: 1.1.0 > Reporter: Bikas Saha > Assignee: Bikas Saha > > The initial patch submitted on HADOOP-8223 does not have ability to set file > permissions on Windows. This is causing tests to fail. Jira tracks adding > support to enable file permissions and ownership changes on Windows -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira