Unable to cd to a folder although I am part of the same group

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a folder, and I can see execution permissions are provided to the elasticsearch group so I add myself to this group. Why can't I cd to this folder?



$ ls -lhd elasti*
drwxr-x--- 2 elasticsearch elasticsearch 4,0K abr 12 17:39 elasticsearch

$ sudo adduser matias elasticsearch
The user `matias' is already a member of `elasticsearch'.

$ cd elasticsearch
bash: cd: elasticsearch: Permission denied






share|improve this question













migrated from serverfault.com Apr 21 at 18:21


This question came from our site for system and network administrators.










  • 5




    have you opened a new sessions after you added your use to the group? provide the output of the id command
    – c4f4t0r
    Apr 19 at 7:07










  • Are ACL in effect? You can check with getfacl elasticsearch.
    – Gerald Schneider
    Apr 19 at 12:16










  • A useful command in this kind of situation is id, which shows the current user and their group memberships.
    – roaima
    Apr 21 at 19:21














up vote
0
down vote

favorite












I have a folder, and I can see execution permissions are provided to the elasticsearch group so I add myself to this group. Why can't I cd to this folder?



$ ls -lhd elasti*
drwxr-x--- 2 elasticsearch elasticsearch 4,0K abr 12 17:39 elasticsearch

$ sudo adduser matias elasticsearch
The user `matias' is already a member of `elasticsearch'.

$ cd elasticsearch
bash: cd: elasticsearch: Permission denied






share|improve this question













migrated from serverfault.com Apr 21 at 18:21


This question came from our site for system and network administrators.










  • 5




    have you opened a new sessions after you added your use to the group? provide the output of the id command
    – c4f4t0r
    Apr 19 at 7:07










  • Are ACL in effect? You can check with getfacl elasticsearch.
    – Gerald Schneider
    Apr 19 at 12:16










  • A useful command in this kind of situation is id, which shows the current user and their group memberships.
    – roaima
    Apr 21 at 19:21












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a folder, and I can see execution permissions are provided to the elasticsearch group so I add myself to this group. Why can't I cd to this folder?



$ ls -lhd elasti*
drwxr-x--- 2 elasticsearch elasticsearch 4,0K abr 12 17:39 elasticsearch

$ sudo adduser matias elasticsearch
The user `matias' is already a member of `elasticsearch'.

$ cd elasticsearch
bash: cd: elasticsearch: Permission denied






share|improve this question













I have a folder, and I can see execution permissions are provided to the elasticsearch group so I add myself to this group. Why can't I cd to this folder?



$ ls -lhd elasti*
drwxr-x--- 2 elasticsearch elasticsearch 4,0K abr 12 17:39 elasticsearch

$ sudo adduser matias elasticsearch
The user `matias' is already a member of `elasticsearch'.

$ cd elasticsearch
bash: cd: elasticsearch: Permission denied








share|improve this question












share|improve this question




share|improve this question








edited Apr 21 at 18:31









Kusalananda

102k13199315




102k13199315









asked Apr 19 at 4:27









Matias Barrios

1062




1062




migrated from serverfault.com Apr 21 at 18:21


This question came from our site for system and network administrators.






migrated from serverfault.com Apr 21 at 18:21


This question came from our site for system and network administrators.









  • 5




    have you opened a new sessions after you added your use to the group? provide the output of the id command
    – c4f4t0r
    Apr 19 at 7:07










  • Are ACL in effect? You can check with getfacl elasticsearch.
    – Gerald Schneider
    Apr 19 at 12:16










  • A useful command in this kind of situation is id, which shows the current user and their group memberships.
    – roaima
    Apr 21 at 19:21












  • 5




    have you opened a new sessions after you added your use to the group? provide the output of the id command
    – c4f4t0r
    Apr 19 at 7:07










  • Are ACL in effect? You can check with getfacl elasticsearch.
    – Gerald Schneider
    Apr 19 at 12:16










  • A useful command in this kind of situation is id, which shows the current user and their group memberships.
    – roaima
    Apr 21 at 19:21







5




5




have you opened a new sessions after you added your use to the group? provide the output of the id command
– c4f4t0r
Apr 19 at 7:07




have you opened a new sessions after you added your use to the group? provide the output of the id command
– c4f4t0r
Apr 19 at 7:07












Are ACL in effect? You can check with getfacl elasticsearch.
– Gerald Schneider
Apr 19 at 12:16




Are ACL in effect? You can check with getfacl elasticsearch.
– Gerald Schneider
Apr 19 at 12:16












A useful command in this kind of situation is id, which shows the current user and their group memberships.
– roaima
Apr 21 at 19:21




A useful command in this kind of situation is id, which shows the current user and their group memberships.
– roaima
Apr 21 at 19:21










1 Answer
1






active

oldest

votes

















up vote
0
down vote













The most likely answer is that you added your user to the group in the same shell session as where you try to cd into the folder.



For the new group membership to take effect, you would have to start a new shell session, or log out and log in again.






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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    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%2f439161%2funable-to-cd-to-a-folder-although-i-am-part-of-the-same-group%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    The most likely answer is that you added your user to the group in the same shell session as where you try to cd into the folder.



    For the new group membership to take effect, you would have to start a new shell session, or log out and log in again.






    share|improve this answer



























      up vote
      0
      down vote













      The most likely answer is that you added your user to the group in the same shell session as where you try to cd into the folder.



      For the new group membership to take effect, you would have to start a new shell session, or log out and log in again.






      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        The most likely answer is that you added your user to the group in the same shell session as where you try to cd into the folder.



        For the new group membership to take effect, you would have to start a new shell session, or log out and log in again.






        share|improve this answer















        The most likely answer is that you added your user to the group in the same shell session as where you try to cd into the folder.



        For the new group membership to take effect, you would have to start a new shell session, or log out and log in again.







        share|improve this answer















        share|improve this answer



        share|improve this answer








        edited Apr 21 at 18:39


























        answered Apr 21 at 18:34









        Kusalananda

        102k13199315




        102k13199315






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f439161%2funable-to-cd-to-a-folder-although-i-am-part-of-the-same-group%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?