[ https://issues.apache.org/jira/browse/HADOOP-9929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13771234#comment-13771234 ]
Colin Patrick McCabe commented on HADOOP-9929: ---------------------------------------------- Andre, I tried to reproduce this on branch-2.1-beta, and was unable to do so. {code} cmccabe@keter:~/hadoopST/branch-2.1-beta> /h/bin/hadoop fs -ls / cmccabe@keter:~/hadoopST/branch-2.1-beta> /h/bin/hadoop fs -mkdir /a cmccabe@keter:~/hadoopST/branch-2.1-beta> /h/bin/hadoop fs -chmod 0000 /a cmccabe@keter:~/hadoopST/branch-2.1-beta> /h/bin/hadoop fs -mkdir /a/b su other d--------- - cmccabe supergroup 0 2013-09-18 13:57 hdfs://localhost:6000/a other@keter:/home/cmccabe/hadoopST/branch-2.1-beta> /h/bin/hadoop fs -ls hdfs://localhost:6000/a/b ls: Permission denied: user=other, access=EXECUTE, inode="/a":cmccabe:supergroup:d--------- other@keter:/home/cmccabe/hadoopST/branch-2.1-beta> /h/bin/hadoop fs -ls hdfs://localhost:6000/*/b ls: Permission denied: user=other, access=EXECUTE, inode="/a":cmccabe:supergroup:d--------- {code} I also looked at the code in branch-2.1-beta, and was unable to see why this bug would exist there. So I would like to remove branch-2.1-beta from the versions fields, unless someone else can reproduce this. > Insufficient permissions for a path reported as file not found > -------------------------------------------------------------- > > Key: HADOOP-9929 > URL: https://issues.apache.org/jira/browse/HADOOP-9929 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 2.1.0-beta, 2.0.4-alpha > Reporter: Jason Lowe > Assignee: Colin Patrick McCabe > Attachments: HADOOP-9929.001.patch > > > Using "hadoop fs -ls" to list a path where the permissions of a parent > directory are insufficient ends up reporting "no such file or directory" on > the full path rather than reporting the permission issue. For example: > {noformat} > $ hadoop fs -ls /user/abc/tests/data > ls: `/user/abc/tests/data': No such file or directory > $ hadoop fs -ls /user/abc > ls: Permission denied: user=somebody, access=READ_EXECUTE, > inode="/user/abc":abc:hdfs:drwx------ > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira