Can't read a file although it's in my group and permissions for group read are setTrouble understanding why getfattr -d doe not show anythingDefault directory permissions over NFSWhat has priority - owner/user vs group permission?Understanding UNIX permissions and file typesexecute a script with some permissionUser in the same group new/edit files permissionsRestrictive “group” permissions but open “world” permissions?Are there superset/subset relations between the sets of permissions of user owner, work group and other for a file?How to Allow User Access to a Specific File in a Restricted Directory?Nginx requires identical permissions for a whole path up to a directory “assets” of my app to be able to read and serve assetsUnix File Permissions and Decryption with OpenSSL's enc command

Have I saved too much for retirement so far?

Is it okay / does it make sense for another player to join a running game of Munchkin?

What's a natural way to say that someone works somewhere (for a job)?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Valid Badminton Score?

Is there a problem with hiding "forgot password" until it's needed?

How could Frankenstein get the parts for his _second_ creature?

What is the oldest known work of fiction?

Is a roofing delivery truck likely to crack my driveway slab?

Tiptoe or tiphoof? Adjusting words to better fit fantasy races

Time travel short story where a man arrives in the late 19th century in a time machine and then sends the machine back into the past

Is exact Kanji stroke length important?

when is out of tune ok?

Can I use my Chinese passport to enter China after I acquired another citizenship?

How was Earth single-handedly capable of creating 3 of the 4 gods of chaos?

Should my PhD thesis be submitted under my legal name?

apt-get update is failing in debian

Personal Teleportation as a Weapon

The baby cries all morning

Opposite of a diet

Go Pregnant or Go Home

What would happen if the UK refused to take part in EU Parliamentary elections?

The plural of 'stomach"

At which point does a character regain all their Hit Dice?



Can't read a file although it's in my group and permissions for group read are set


Trouble understanding why getfattr -d doe not show anythingDefault directory permissions over NFSWhat has priority - owner/user vs group permission?Understanding UNIX permissions and file typesexecute a script with some permissionUser in the same group new/edit files permissionsRestrictive “group” permissions but open “world” permissions?Are there superset/subset relations between the sets of permissions of user owner, work group and other for a file?How to Allow User Access to a Specific File in a Restricted Directory?Nginx requires identical permissions for a whole path up to a directory “assets” of my app to be able to read and serve assetsUnix File Permissions and Decryption with OpenSSL's enc command













14















I encounter a strange problem on a unix/linux machine:



I'm member of a group, let's call it group A and a certain file (which has a different owner) belongs to group A as well. The permissions of that file are



-rw-rw----


so I'd expect I should be able to open that file, but I am not: I'll get the "Permission denied" error message when I try to look at the file's content (using cat).



Since the permissions seem to be correct, what else could be causing this? Are there "overriding" permission restrictions in place? If so, how would I find out?










share|improve this question



















  • 2





    What about directory permissions?

    – Karlson
    Oct 13 '12 at 18:04











  • If you are in multiple groups, is your current group set to A?

    – Code-Guru
    Oct 13 '12 at 19:49






  • 2





    @Karlson, if directory permissions were the issue, you wouldn't be able to see the file's permissions in the first place.

    – cjm
    Oct 13 '12 at 22:02











  • Show us the full path and filename please.

    – jippie
    Oct 14 '12 at 9:13











  • It's in /home/theotheruser/somefolder/bla.txt I am in multiple groups.

    – Lagerbaer
    Oct 14 '12 at 18:31















14















I encounter a strange problem on a unix/linux machine:



I'm member of a group, let's call it group A and a certain file (which has a different owner) belongs to group A as well. The permissions of that file are



-rw-rw----


so I'd expect I should be able to open that file, but I am not: I'll get the "Permission denied" error message when I try to look at the file's content (using cat).



Since the permissions seem to be correct, what else could be causing this? Are there "overriding" permission restrictions in place? If so, how would I find out?










share|improve this question



















  • 2





    What about directory permissions?

    – Karlson
    Oct 13 '12 at 18:04











  • If you are in multiple groups, is your current group set to A?

    – Code-Guru
    Oct 13 '12 at 19:49






  • 2





    @Karlson, if directory permissions were the issue, you wouldn't be able to see the file's permissions in the first place.

    – cjm
    Oct 13 '12 at 22:02











  • Show us the full path and filename please.

    – jippie
    Oct 14 '12 at 9:13











  • It's in /home/theotheruser/somefolder/bla.txt I am in multiple groups.

    – Lagerbaer
    Oct 14 '12 at 18:31













14












14








14


3






I encounter a strange problem on a unix/linux machine:



I'm member of a group, let's call it group A and a certain file (which has a different owner) belongs to group A as well. The permissions of that file are



-rw-rw----


so I'd expect I should be able to open that file, but I am not: I'll get the "Permission denied" error message when I try to look at the file's content (using cat).



Since the permissions seem to be correct, what else could be causing this? Are there "overriding" permission restrictions in place? If so, how would I find out?










share|improve this question
















I encounter a strange problem on a unix/linux machine:



I'm member of a group, let's call it group A and a certain file (which has a different owner) belongs to group A as well. The permissions of that file are



-rw-rw----


so I'd expect I should be able to open that file, but I am not: I'll get the "Permission denied" error message when I try to look at the file's content (using cat).



Since the permissions seem to be correct, what else could be causing this? Are there "overriding" permission restrictions in place? If so, how would I find out?







permissions files nfs group






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 15 '12 at 8:37









Stéphane Chazelas

311k57587945




311k57587945










asked Oct 13 '12 at 17:28









LagerbaerLagerbaer

171115




171115







  • 2





    What about directory permissions?

    – Karlson
    Oct 13 '12 at 18:04











  • If you are in multiple groups, is your current group set to A?

    – Code-Guru
    Oct 13 '12 at 19:49






  • 2





    @Karlson, if directory permissions were the issue, you wouldn't be able to see the file's permissions in the first place.

    – cjm
    Oct 13 '12 at 22:02











  • Show us the full path and filename please.

    – jippie
    Oct 14 '12 at 9:13











  • It's in /home/theotheruser/somefolder/bla.txt I am in multiple groups.

    – Lagerbaer
    Oct 14 '12 at 18:31












  • 2





    What about directory permissions?

    – Karlson
    Oct 13 '12 at 18:04











  • If you are in multiple groups, is your current group set to A?

    – Code-Guru
    Oct 13 '12 at 19:49






  • 2





    @Karlson, if directory permissions were the issue, you wouldn't be able to see the file's permissions in the first place.

    – cjm
    Oct 13 '12 at 22:02











  • Show us the full path and filename please.

    – jippie
    Oct 14 '12 at 9:13











  • It's in /home/theotheruser/somefolder/bla.txt I am in multiple groups.

    – Lagerbaer
    Oct 14 '12 at 18:31







2




2





What about directory permissions?

– Karlson
Oct 13 '12 at 18:04





What about directory permissions?

– Karlson
Oct 13 '12 at 18:04













If you are in multiple groups, is your current group set to A?

– Code-Guru
Oct 13 '12 at 19:49





If you are in multiple groups, is your current group set to A?

– Code-Guru
Oct 13 '12 at 19:49




2




2





@Karlson, if directory permissions were the issue, you wouldn't be able to see the file's permissions in the first place.

– cjm
Oct 13 '12 at 22:02





@Karlson, if directory permissions were the issue, you wouldn't be able to see the file's permissions in the first place.

– cjm
Oct 13 '12 at 22:02













Show us the full path and filename please.

– jippie
Oct 14 '12 at 9:13





Show us the full path and filename please.

– jippie
Oct 14 '12 at 9:13













It's in /home/theotheruser/somefolder/bla.txt I am in multiple groups.

– Lagerbaer
Oct 14 '12 at 18:31





It's in /home/theotheruser/somefolder/bla.txt I am in multiple groups.

– Lagerbaer
Oct 14 '12 at 18:31










4 Answers
4






active

oldest

votes


















8














Have you logged out and logged back in again since you were added to group A ?



If not, your current login processes will only have the group memberships that it had at the time of login, not any changes since. And any child processes of that login will have the same group memberships (i.e. if you logged into X then every application including your terminal emulator and shell)



You can test this by logging in again on another console or via ssh, or something like exec sudo -u $(id -u -n) -i (to effectively kill and replace the current shell with a new shell - any background processes belonging to that shell will be orphaned)






share|improve this answer























  • No, that wasn't the problem; I logged out and back in and that didn't resolve it.

    – Lagerbaer
    Oct 14 '12 at 18:37


















3














With NFS, it depends which security mode you use, but in the traditional one, the list of groups the user belongs to is sent by the client to the server, and there's a limit on the number of groups that can be sent (it was 16 the last time I checked).



So, the client says: I'm uid 1234 and by the way I'm member of groups 12, 13, 14... If you're in more than 16 groups, that list will be truncated and there will be groups for which the server is not aware you're a member of it.



That's probably the explanation for it. Only the system administrator of the local and/or remote machine can do something about that either by changing the security model or the setting of the NFS server or by reducing the number of groups you're a member of.






share|improve this answer























  • I have a strong feeling that this is the reason, because the group I'm appears at position 19 in the output of the "groups" command. I'll show this answer to the sys admin and see if it helps. :)

    – Lagerbaer
    Oct 15 '12 at 16:21











  • How would you change the "security model" on NFS to solve this?

    – Danny
    Mar 28 '17 at 5:26


















1














Could be ACLs. See



getfacl the-file


Could be that for some reason, the groups you're meant to be in is not properly set. Check with



id -a


What about



namei -xl "$(readlink -f the-file)"

getfattr -dm- the-file

sudo lsattr the-file


What's the type of the filesystem it resides in?



Any apparmor, SELinux or any other mandatory access control in place in the system?



You're sure the file doesn't contain the text "Permission denied", right ;-) ?






share|improve this answer

























  • Nope, there's no special ACL, it just repeats what the standard flags tell me, and id -a tells me that I am in that file's group

    – Lagerbaer
    Oct 13 '12 at 17:56











  • The weird thing is, I can see the files of another user belonging to group B, of which I'm also a member...

    – Lagerbaer
    Oct 14 '12 at 18:38











  • File system appears to be nfs4. namei gives me / and home belonging to root, root. /home/username belonging to username and group X (of which I am not a member), then the rest is /home/username/path1/path2/file where path1 belongs to username and group X, and path2 belongs to username, and group A, of which I'm a member.

    – Lagerbaer
    Oct 15 '12 at 1:07


















0














As you note in a comment, you don't have read permissions to /home/username. But to read /home/username/path1/path2/file, you need execute permissions for the whole path.



To debug this, run namei -l /home/username/path1/path2/file as the user who reads the file.






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f50780%2fcant-read-a-file-although-its-in-my-group-and-permissions-for-group-read-are-s%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    8














    Have you logged out and logged back in again since you were added to group A ?



    If not, your current login processes will only have the group memberships that it had at the time of login, not any changes since. And any child processes of that login will have the same group memberships (i.e. if you logged into X then every application including your terminal emulator and shell)



    You can test this by logging in again on another console or via ssh, or something like exec sudo -u $(id -u -n) -i (to effectively kill and replace the current shell with a new shell - any background processes belonging to that shell will be orphaned)






    share|improve this answer























    • No, that wasn't the problem; I logged out and back in and that didn't resolve it.

      – Lagerbaer
      Oct 14 '12 at 18:37















    8














    Have you logged out and logged back in again since you were added to group A ?



    If not, your current login processes will only have the group memberships that it had at the time of login, not any changes since. And any child processes of that login will have the same group memberships (i.e. if you logged into X then every application including your terminal emulator and shell)



    You can test this by logging in again on another console or via ssh, or something like exec sudo -u $(id -u -n) -i (to effectively kill and replace the current shell with a new shell - any background processes belonging to that shell will be orphaned)






    share|improve this answer























    • No, that wasn't the problem; I logged out and back in and that didn't resolve it.

      – Lagerbaer
      Oct 14 '12 at 18:37













    8












    8








    8







    Have you logged out and logged back in again since you were added to group A ?



    If not, your current login processes will only have the group memberships that it had at the time of login, not any changes since. And any child processes of that login will have the same group memberships (i.e. if you logged into X then every application including your terminal emulator and shell)



    You can test this by logging in again on another console or via ssh, or something like exec sudo -u $(id -u -n) -i (to effectively kill and replace the current shell with a new shell - any background processes belonging to that shell will be orphaned)






    share|improve this answer













    Have you logged out and logged back in again since you were added to group A ?



    If not, your current login processes will only have the group memberships that it had at the time of login, not any changes since. And any child processes of that login will have the same group memberships (i.e. if you logged into X then every application including your terminal emulator and shell)



    You can test this by logging in again on another console or via ssh, or something like exec sudo -u $(id -u -n) -i (to effectively kill and replace the current shell with a new shell - any background processes belonging to that shell will be orphaned)







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Oct 13 '12 at 22:20









    cascas

    39.5k455103




    39.5k455103












    • No, that wasn't the problem; I logged out and back in and that didn't resolve it.

      – Lagerbaer
      Oct 14 '12 at 18:37

















    • No, that wasn't the problem; I logged out and back in and that didn't resolve it.

      – Lagerbaer
      Oct 14 '12 at 18:37
















    No, that wasn't the problem; I logged out and back in and that didn't resolve it.

    – Lagerbaer
    Oct 14 '12 at 18:37





    No, that wasn't the problem; I logged out and back in and that didn't resolve it.

    – Lagerbaer
    Oct 14 '12 at 18:37













    3














    With NFS, it depends which security mode you use, but in the traditional one, the list of groups the user belongs to is sent by the client to the server, and there's a limit on the number of groups that can be sent (it was 16 the last time I checked).



    So, the client says: I'm uid 1234 and by the way I'm member of groups 12, 13, 14... If you're in more than 16 groups, that list will be truncated and there will be groups for which the server is not aware you're a member of it.



    That's probably the explanation for it. Only the system administrator of the local and/or remote machine can do something about that either by changing the security model or the setting of the NFS server or by reducing the number of groups you're a member of.






    share|improve this answer























    • I have a strong feeling that this is the reason, because the group I'm appears at position 19 in the output of the "groups" command. I'll show this answer to the sys admin and see if it helps. :)

      – Lagerbaer
      Oct 15 '12 at 16:21











    • How would you change the "security model" on NFS to solve this?

      – Danny
      Mar 28 '17 at 5:26















    3














    With NFS, it depends which security mode you use, but in the traditional one, the list of groups the user belongs to is sent by the client to the server, and there's a limit on the number of groups that can be sent (it was 16 the last time I checked).



    So, the client says: I'm uid 1234 and by the way I'm member of groups 12, 13, 14... If you're in more than 16 groups, that list will be truncated and there will be groups for which the server is not aware you're a member of it.



    That's probably the explanation for it. Only the system administrator of the local and/or remote machine can do something about that either by changing the security model or the setting of the NFS server or by reducing the number of groups you're a member of.






    share|improve this answer























    • I have a strong feeling that this is the reason, because the group I'm appears at position 19 in the output of the "groups" command. I'll show this answer to the sys admin and see if it helps. :)

      – Lagerbaer
      Oct 15 '12 at 16:21











    • How would you change the "security model" on NFS to solve this?

      – Danny
      Mar 28 '17 at 5:26













    3












    3








    3







    With NFS, it depends which security mode you use, but in the traditional one, the list of groups the user belongs to is sent by the client to the server, and there's a limit on the number of groups that can be sent (it was 16 the last time I checked).



    So, the client says: I'm uid 1234 and by the way I'm member of groups 12, 13, 14... If you're in more than 16 groups, that list will be truncated and there will be groups for which the server is not aware you're a member of it.



    That's probably the explanation for it. Only the system administrator of the local and/or remote machine can do something about that either by changing the security model or the setting of the NFS server or by reducing the number of groups you're a member of.






    share|improve this answer













    With NFS, it depends which security mode you use, but in the traditional one, the list of groups the user belongs to is sent by the client to the server, and there's a limit on the number of groups that can be sent (it was 16 the last time I checked).



    So, the client says: I'm uid 1234 and by the way I'm member of groups 12, 13, 14... If you're in more than 16 groups, that list will be truncated and there will be groups for which the server is not aware you're a member of it.



    That's probably the explanation for it. Only the system administrator of the local and/or remote machine can do something about that either by changing the security model or the setting of the NFS server or by reducing the number of groups you're a member of.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Oct 15 '12 at 8:41









    Stéphane ChazelasStéphane Chazelas

    311k57587945




    311k57587945












    • I have a strong feeling that this is the reason, because the group I'm appears at position 19 in the output of the "groups" command. I'll show this answer to the sys admin and see if it helps. :)

      – Lagerbaer
      Oct 15 '12 at 16:21











    • How would you change the "security model" on NFS to solve this?

      – Danny
      Mar 28 '17 at 5:26

















    • I have a strong feeling that this is the reason, because the group I'm appears at position 19 in the output of the "groups" command. I'll show this answer to the sys admin and see if it helps. :)

      – Lagerbaer
      Oct 15 '12 at 16:21











    • How would you change the "security model" on NFS to solve this?

      – Danny
      Mar 28 '17 at 5:26
















    I have a strong feeling that this is the reason, because the group I'm appears at position 19 in the output of the "groups" command. I'll show this answer to the sys admin and see if it helps. :)

    – Lagerbaer
    Oct 15 '12 at 16:21





    I have a strong feeling that this is the reason, because the group I'm appears at position 19 in the output of the "groups" command. I'll show this answer to the sys admin and see if it helps. :)

    – Lagerbaer
    Oct 15 '12 at 16:21













    How would you change the "security model" on NFS to solve this?

    – Danny
    Mar 28 '17 at 5:26





    How would you change the "security model" on NFS to solve this?

    – Danny
    Mar 28 '17 at 5:26











    1














    Could be ACLs. See



    getfacl the-file


    Could be that for some reason, the groups you're meant to be in is not properly set. Check with



    id -a


    What about



    namei -xl "$(readlink -f the-file)"

    getfattr -dm- the-file

    sudo lsattr the-file


    What's the type of the filesystem it resides in?



    Any apparmor, SELinux or any other mandatory access control in place in the system?



    You're sure the file doesn't contain the text "Permission denied", right ;-) ?






    share|improve this answer

























    • Nope, there's no special ACL, it just repeats what the standard flags tell me, and id -a tells me that I am in that file's group

      – Lagerbaer
      Oct 13 '12 at 17:56











    • The weird thing is, I can see the files of another user belonging to group B, of which I'm also a member...

      – Lagerbaer
      Oct 14 '12 at 18:38











    • File system appears to be nfs4. namei gives me / and home belonging to root, root. /home/username belonging to username and group X (of which I am not a member), then the rest is /home/username/path1/path2/file where path1 belongs to username and group X, and path2 belongs to username, and group A, of which I'm a member.

      – Lagerbaer
      Oct 15 '12 at 1:07















    1














    Could be ACLs. See



    getfacl the-file


    Could be that for some reason, the groups you're meant to be in is not properly set. Check with



    id -a


    What about



    namei -xl "$(readlink -f the-file)"

    getfattr -dm- the-file

    sudo lsattr the-file


    What's the type of the filesystem it resides in?



    Any apparmor, SELinux or any other mandatory access control in place in the system?



    You're sure the file doesn't contain the text "Permission denied", right ;-) ?






    share|improve this answer

























    • Nope, there's no special ACL, it just repeats what the standard flags tell me, and id -a tells me that I am in that file's group

      – Lagerbaer
      Oct 13 '12 at 17:56











    • The weird thing is, I can see the files of another user belonging to group B, of which I'm also a member...

      – Lagerbaer
      Oct 14 '12 at 18:38











    • File system appears to be nfs4. namei gives me / and home belonging to root, root. /home/username belonging to username and group X (of which I am not a member), then the rest is /home/username/path1/path2/file where path1 belongs to username and group X, and path2 belongs to username, and group A, of which I'm a member.

      – Lagerbaer
      Oct 15 '12 at 1:07













    1












    1








    1







    Could be ACLs. See



    getfacl the-file


    Could be that for some reason, the groups you're meant to be in is not properly set. Check with



    id -a


    What about



    namei -xl "$(readlink -f the-file)"

    getfattr -dm- the-file

    sudo lsattr the-file


    What's the type of the filesystem it resides in?



    Any apparmor, SELinux or any other mandatory access control in place in the system?



    You're sure the file doesn't contain the text "Permission denied", right ;-) ?






    share|improve this answer















    Could be ACLs. See



    getfacl the-file


    Could be that for some reason, the groups you're meant to be in is not properly set. Check with



    id -a


    What about



    namei -xl "$(readlink -f the-file)"

    getfattr -dm- the-file

    sudo lsattr the-file


    What's the type of the filesystem it resides in?



    Any apparmor, SELinux or any other mandatory access control in place in the system?



    You're sure the file doesn't contain the text "Permission denied", right ;-) ?







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Oct 14 '12 at 19:53

























    answered Oct 13 '12 at 17:44









    Stéphane ChazelasStéphane Chazelas

    311k57587945




    311k57587945












    • Nope, there's no special ACL, it just repeats what the standard flags tell me, and id -a tells me that I am in that file's group

      – Lagerbaer
      Oct 13 '12 at 17:56











    • The weird thing is, I can see the files of another user belonging to group B, of which I'm also a member...

      – Lagerbaer
      Oct 14 '12 at 18:38











    • File system appears to be nfs4. namei gives me / and home belonging to root, root. /home/username belonging to username and group X (of which I am not a member), then the rest is /home/username/path1/path2/file where path1 belongs to username and group X, and path2 belongs to username, and group A, of which I'm a member.

      – Lagerbaer
      Oct 15 '12 at 1:07

















    • Nope, there's no special ACL, it just repeats what the standard flags tell me, and id -a tells me that I am in that file's group

      – Lagerbaer
      Oct 13 '12 at 17:56











    • The weird thing is, I can see the files of another user belonging to group B, of which I'm also a member...

      – Lagerbaer
      Oct 14 '12 at 18:38











    • File system appears to be nfs4. namei gives me / and home belonging to root, root. /home/username belonging to username and group X (of which I am not a member), then the rest is /home/username/path1/path2/file where path1 belongs to username and group X, and path2 belongs to username, and group A, of which I'm a member.

      – Lagerbaer
      Oct 15 '12 at 1:07
















    Nope, there's no special ACL, it just repeats what the standard flags tell me, and id -a tells me that I am in that file's group

    – Lagerbaer
    Oct 13 '12 at 17:56





    Nope, there's no special ACL, it just repeats what the standard flags tell me, and id -a tells me that I am in that file's group

    – Lagerbaer
    Oct 13 '12 at 17:56













    The weird thing is, I can see the files of another user belonging to group B, of which I'm also a member...

    – Lagerbaer
    Oct 14 '12 at 18:38





    The weird thing is, I can see the files of another user belonging to group B, of which I'm also a member...

    – Lagerbaer
    Oct 14 '12 at 18:38













    File system appears to be nfs4. namei gives me / and home belonging to root, root. /home/username belonging to username and group X (of which I am not a member), then the rest is /home/username/path1/path2/file where path1 belongs to username and group X, and path2 belongs to username, and group A, of which I'm a member.

    – Lagerbaer
    Oct 15 '12 at 1:07





    File system appears to be nfs4. namei gives me / and home belonging to root, root. /home/username belonging to username and group X (of which I am not a member), then the rest is /home/username/path1/path2/file where path1 belongs to username and group X, and path2 belongs to username, and group A, of which I'm a member.

    – Lagerbaer
    Oct 15 '12 at 1:07











    0














    As you note in a comment, you don't have read permissions to /home/username. But to read /home/username/path1/path2/file, you need execute permissions for the whole path.



    To debug this, run namei -l /home/username/path1/path2/file as the user who reads the file.






    share|improve this answer



























      0














      As you note in a comment, you don't have read permissions to /home/username. But to read /home/username/path1/path2/file, you need execute permissions for the whole path.



      To debug this, run namei -l /home/username/path1/path2/file as the user who reads the file.






      share|improve this answer

























        0












        0








        0







        As you note in a comment, you don't have read permissions to /home/username. But to read /home/username/path1/path2/file, you need execute permissions for the whole path.



        To debug this, run namei -l /home/username/path1/path2/file as the user who reads the file.






        share|improve this answer













        As you note in a comment, you don't have read permissions to /home/username. But to read /home/username/path1/path2/file, you need execute permissions for the whole path.



        To debug this, run namei -l /home/username/path1/path2/file as the user who reads the file.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        Adam TrhonAdam Trhon

        1,00221119




        1,00221119



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f50780%2fcant-read-a-file-although-its-in-my-group-and-permissions-for-group-read-are-s%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            -files, group, nfs, permissions

            Popular posts from this blog

            Mobil Contents History Mobil brands Former Mobil brands Lukoil transaction Mobil UK Mobil Australia Mobil New Zealand Mobil Greece Mobil in Japan Mobil in Canada Mobil Egypt See also References External links Navigation menuwww.mobil.com"Mobil Corporation"the original"Our Houston campus""Business & Finance: Socony-Vacuum Corp.""Popular Mechanics""Lubrite Technologies""Exxon Mobil campus 'clearly happening'""Toledo Blade - Google News Archive Search""The Lion and the Moose - How 2 Executives Pulled off the Biggest Merger Ever""ExxonMobil Press Release""Lubricants""Archived copy"the original"Mobil 1™ and Mobil Super™ motor oil and synthetic motor oil - Mobil™ Motor Oils""Mobil Delvac""Mobil Industrial website""The State of Competition in Gasoline Marketing: The Effects of Refiner Operations at Retail""Mobil Travel Guide to become Forbes Travel Guide""Hotel Rankings: Forbes Merges with Mobil"the original"Jamieson oil industry history""Mobil news""Caltex pumps for control""Watchdog blocks Caltex bid""Exxon Mobil sells service station network""Mobil Oil New Zealand Limited is New Zealand's oldest oil company, with predecessor companies having first established a presence in the country in 1896""ExxonMobil subsidiaries have a business history in New Zealand stretching back more than 120 years. We are involved in petroleum refining and distribution and the marketing of fuels, lubricants and chemical products""Archived copy"the original"Exxon Mobil to Sell Its Japanese Arm for $3.9 Billion""Gas station merger will end Esso and Mobil's long run in Japan""Esso moves to affiliate itself with PC Optimum, no longer Aeroplan, in loyalty point switch""Mobil brand of gas stations to launch in Canada after deal for 213 Loblaws-owned locations""Mobil Nears Completion of Rebranding 200 Loblaw Gas Stations""Learn about ExxonMobil's operations in Egypt""Petrol and Diesel Service Stations in Egypt - Mobil"Official websiteExxon Mobil corporate websiteMobil Industrial official websiteeeeeeeeDA04275022275790-40000 0001 0860 5061n82045453134887257134887257

            Frič See also Navigation menuinternal link

            Identify plant with long narrow paired leaves and reddish stems Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?What is this plant with long sharp leaves? Is it a weed?What is this 3ft high, stalky plant, with mid sized narrow leaves?What is this young shrub with opposite ovate, crenate leaves and reddish stems?What is this plant with large broad serrated leaves?Identify this upright branching weed with long leaves and reddish stemsPlease help me identify this bulbous plant with long, broad leaves and white flowersWhat is this small annual with narrow gray/green leaves and rust colored daisy-type flowers?What is this chilli plant?Does anyone know what type of chilli plant this is?Help identify this plant