You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Ramya R (JIRA)" <ji...@apache.org> on 2008/09/29 08:14:44 UTC

[jira] Created: (HADOOP-4299) Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF

Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF
------------------------------------------------------------------------------------------------------------------------------

                 Key: HADOOP-4299
                 URL: https://issues.apache.org/jira/browse/HADOOP-4299
             Project: Hadoop Core
          Issue Type: Bug
          Components: dfs
    Affects Versions: 0.19.0
            Reporter: Ramya R
            Priority: Minor
             Fix For: 0.19.0


Consider the following two scenarios
1)   With permissions ON, start cluster as user A, create a file as user A, chmod 770 file as user A, access file as user B(using 'get' command) 
The expected behavior would be that user B should be able to access the file since user A and user B are in the same group. But this is not happening. Instead the following error message is displayed "get: Permission denied"

2)  With permissions ON, start cluster as user A, create a file as user A, chmod 700 file as user A, shut down dfs and turn permissions OFF and start up dfs, access file as user B(using 'get')
The expected behavior would be that user B should be able to access the file since permissions is turned OFF. But this is not happening. Instead the following error message is displayed "get: Permission denied"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4299) Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF

Posted by "Hairong Kuang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636198#action_12636198 ] 

Hairong Kuang commented on HADOOP-4299:
---------------------------------------

I tried both scenarios. All worked. Did the error message you saw come from the local file system? Please try using "cat" instead of "get".

> Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4299
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4299
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.19.0
>            Reporter: Ramya R
>            Assignee: Hairong Kuang
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> Consider the following two scenarios
> 1)   With permissions ON, start cluster as user A, create a file as user A, chmod 770 file as user A, access file as user B(using 'get' command) 
> The expected behavior would be that user B should be able to access the file since user A and user B are in the same group. But this is not happening. Instead the following error message is displayed "get: Permission denied"
> 2)  With permissions ON, start cluster as user A, create a file as user A, chmod 700 file as user A, shut down dfs and turn permissions OFF and start up dfs, access file as user B(using 'get')
> The expected behavior would be that user B should be able to access the file since permissions is turned OFF. But this is not happening. Instead the following error message is displayed "get: Permission denied"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HADOOP-4299) Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF

Posted by "Ramya R (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-4299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ramya R resolved HADOOP-4299.
-----------------------------

    Resolution: Fixed

The user did not have permission to write to the local disk in both scenarios. Thats the reason why it was unable to "get:" the file. Thanks Hairong. 
Resolving this issue.

> Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4299
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4299
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.19.0
>            Reporter: Ramya R
>            Assignee: Hairong Kuang
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> Consider the following two scenarios
> 1)   With permissions ON, start cluster as user A, create a file as user A, chmod 770 file as user A, access file as user B(using 'get' command) 
> The expected behavior would be that user B should be able to access the file since user A and user B are in the same group. But this is not happening. Instead the following error message is displayed "get: Permission denied"
> 2)  With permissions ON, start cluster as user A, create a file as user A, chmod 700 file as user A, shut down dfs and turn permissions OFF and start up dfs, access file as user B(using 'get')
> The expected behavior would be that user B should be able to access the file since permissions is turned OFF. But this is not happening. Instead the following error message is displayed "get: Permission denied"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4299) Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF

Posted by "Hairong Kuang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637141#action_12637141 ] 

Hairong Kuang commented on HADOOP-4299:
---------------------------------------

Get writes the dfs file to your local disk. Could you please check if the user has the permission to write to the local disk in both scenarios?

> Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4299
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4299
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.19.0
>            Reporter: Ramya R
>            Assignee: Hairong Kuang
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> Consider the following two scenarios
> 1)   With permissions ON, start cluster as user A, create a file as user A, chmod 770 file as user A, access file as user B(using 'get' command) 
> The expected behavior would be that user B should be able to access the file since user A and user B are in the same group. But this is not happening. Instead the following error message is displayed "get: Permission denied"
> 2)  With permissions ON, start cluster as user A, create a file as user A, chmod 700 file as user A, shut down dfs and turn permissions OFF and start up dfs, access file as user B(using 'get')
> The expected behavior would be that user B should be able to access the file since permissions is turned OFF. But this is not happening. Instead the following error message is displayed "get: Permission denied"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HADOOP-4299) Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF

Posted by "Hairong Kuang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-4299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hairong Kuang reassigned HADOOP-4299:
-------------------------------------

    Assignee: Hairong Kuang

> Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4299
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4299
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.19.0
>            Reporter: Ramya R
>            Assignee: Hairong Kuang
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> Consider the following two scenarios
> 1)   With permissions ON, start cluster as user A, create a file as user A, chmod 770 file as user A, access file as user B(using 'get' command) 
> The expected behavior would be that user B should be able to access the file since user A and user B are in the same group. But this is not happening. Instead the following error message is displayed "get: Permission denied"
> 2)  With permissions ON, start cluster as user A, create a file as user A, chmod 700 file as user A, shut down dfs and turn permissions OFF and start up dfs, access file as user B(using 'get')
> The expected behavior would be that user B should be able to access the file since permissions is turned OFF. But this is not happening. Instead the following error message is displayed "get: Permission denied"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-4299) Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF

Posted by "Ramya R (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637115#action_12637115 ] 

Ramya R commented on HADOOP-4299:
---------------------------------

"cat" definitely works but since the permissions is set to 770 in case 1 and permissions is turned OFF in case 2, a user in the same group should be able to read, write and execute the file. So in that case, shouldn't "get " also be supported? Why is "get"not supported in the above two cases?

> Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4299
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4299
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.19.0
>            Reporter: Ramya R
>            Assignee: Hairong Kuang
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> Consider the following two scenarios
> 1)   With permissions ON, start cluster as user A, create a file as user A, chmod 770 file as user A, access file as user B(using 'get' command) 
> The expected behavior would be that user B should be able to access the file since user A and user B are in the same group. But this is not happening. Instead the following error message is displayed "get: Permission denied"
> 2)  With permissions ON, start cluster as user A, create a file as user A, chmod 700 file as user A, shut down dfs and turn permissions OFF and start up dfs, access file as user B(using 'get')
> The expected behavior would be that user B should be able to access the file since permissions is turned OFF. But this is not happening. Instead the following error message is displayed "get: Permission denied"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-4299) Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF

Posted by "Nigel Daley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-4299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nigel Daley updated HADOOP-4299:
--------------------------------

    Priority: Blocker  (was: Minor)

> Unable to access a file by a different user in the same group when permissions is set to 770 or when permissions is turned OFF
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4299
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4299
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.19.0
>            Reporter: Ramya R
>            Priority: Blocker
>             Fix For: 0.19.0
>
>
> Consider the following two scenarios
> 1)   With permissions ON, start cluster as user A, create a file as user A, chmod 770 file as user A, access file as user B(using 'get' command) 
> The expected behavior would be that user B should be able to access the file since user A and user B are in the same group. But this is not happening. Instead the following error message is displayed "get: Permission denied"
> 2)  With permissions ON, start cluster as user A, create a file as user A, chmod 700 file as user A, shut down dfs and turn permissions OFF and start up dfs, access file as user B(using 'get')
> The expected behavior would be that user B should be able to access the file since permissions is turned OFF. But this is not happening. Instead the following error message is displayed "get: Permission denied"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.