you don't currently have permission to access this folder












0














I am trying to building a folder (name:components) within a build folder which contains only html files from the existing component folder using the following code.



find components -iname "*.html" -exec rsync -R {} ./build/ ';'



Building component folder



And it's running perfectly the component is building within build folder but when i access the component folder I'll get following error.



Error Occurring



I'm looking for the permanent solution so that i wouldn't have to give the permission again and again to the folder for accessing.



What i can add into the given code so that automatically authentication give to the folder.










share|improve this question





























    0














    I am trying to building a folder (name:components) within a build folder which contains only html files from the existing component folder using the following code.



    find components -iname "*.html" -exec rsync -R {} ./build/ ';'



    Building component folder



    And it's running perfectly the component is building within build folder but when i access the component folder I'll get following error.



    Error Occurring



    I'm looking for the permanent solution so that i wouldn't have to give the permission again and again to the folder for accessing.



    What i can add into the given code so that automatically authentication give to the folder.










    share|improve this question



























      0












      0








      0







      I am trying to building a folder (name:components) within a build folder which contains only html files from the existing component folder using the following code.



      find components -iname "*.html" -exec rsync -R {} ./build/ ';'



      Building component folder



      And it's running perfectly the component is building within build folder but when i access the component folder I'll get following error.



      Error Occurring



      I'm looking for the permanent solution so that i wouldn't have to give the permission again and again to the folder for accessing.



      What i can add into the given code so that automatically authentication give to the folder.










      share|improve this question















      I am trying to building a folder (name:components) within a build folder which contains only html files from the existing component folder using the following code.



      find components -iname "*.html" -exec rsync -R {} ./build/ ';'



      Building component folder



      And it's running perfectly the component is building within build folder but when i access the component folder I'll get following error.



      Error Occurring



      I'm looking for the permanent solution so that i wouldn't have to give the permission again and again to the folder for accessing.



      What i can add into the given code so that automatically authentication give to the folder.







      permissions windows cygwin npm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 13 mins ago









      Rui F Ribeiro

      38.9k1479129




      38.9k1479129










      asked Aug 28 '17 at 6:09









      gourav sachdeva

      53




      53






















          1 Answer
          1






          active

          oldest

          votes


















          0














          There are many rsync options whose purpose is to preserve attributes of copied files/dirs. Assuming that your source files have the permissions you want use the flag for preserving permissions: --perms (or -p).



          If the source files don't have the permissions you need then you can use the --chmod flag to set permissions of the target files/dirs to whatever you want. For this to work you also need to specify --perms. The chmod flag takes arguments similar to the chmod(1) command but extends them so you can specify permissions only for directories or only for files. For example this would give write permission to the owner for files only: rsync --perms --chmod Fu+w. It looks like you may not have execute permissions on your directories (at the least) so you could try --chmod D+x for starters.



          (I'm assuming that the owner is properly set for your copied files. If not then there is also a --chown=USER:GROUP flag available.)



          Note: I'm working with the limited amount of information you've supplied. If you aren't able to figure things out from the above then please run ls -la against one of the target directories and post the result in your question.






          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%2f388757%2fyou-dont-currently-have-permission-to-access-this-folder%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            There are many rsync options whose purpose is to preserve attributes of copied files/dirs. Assuming that your source files have the permissions you want use the flag for preserving permissions: --perms (or -p).



            If the source files don't have the permissions you need then you can use the --chmod flag to set permissions of the target files/dirs to whatever you want. For this to work you also need to specify --perms. The chmod flag takes arguments similar to the chmod(1) command but extends them so you can specify permissions only for directories or only for files. For example this would give write permission to the owner for files only: rsync --perms --chmod Fu+w. It looks like you may not have execute permissions on your directories (at the least) so you could try --chmod D+x for starters.



            (I'm assuming that the owner is properly set for your copied files. If not then there is also a --chown=USER:GROUP flag available.)



            Note: I'm working with the limited amount of information you've supplied. If you aren't able to figure things out from the above then please run ls -la against one of the target directories and post the result in your question.






            share|improve this answer


























              0














              There are many rsync options whose purpose is to preserve attributes of copied files/dirs. Assuming that your source files have the permissions you want use the flag for preserving permissions: --perms (or -p).



              If the source files don't have the permissions you need then you can use the --chmod flag to set permissions of the target files/dirs to whatever you want. For this to work you also need to specify --perms. The chmod flag takes arguments similar to the chmod(1) command but extends them so you can specify permissions only for directories or only for files. For example this would give write permission to the owner for files only: rsync --perms --chmod Fu+w. It looks like you may not have execute permissions on your directories (at the least) so you could try --chmod D+x for starters.



              (I'm assuming that the owner is properly set for your copied files. If not then there is also a --chown=USER:GROUP flag available.)



              Note: I'm working with the limited amount of information you've supplied. If you aren't able to figure things out from the above then please run ls -la against one of the target directories and post the result in your question.






              share|improve this answer
























                0












                0








                0






                There are many rsync options whose purpose is to preserve attributes of copied files/dirs. Assuming that your source files have the permissions you want use the flag for preserving permissions: --perms (or -p).



                If the source files don't have the permissions you need then you can use the --chmod flag to set permissions of the target files/dirs to whatever you want. For this to work you also need to specify --perms. The chmod flag takes arguments similar to the chmod(1) command but extends them so you can specify permissions only for directories or only for files. For example this would give write permission to the owner for files only: rsync --perms --chmod Fu+w. It looks like you may not have execute permissions on your directories (at the least) so you could try --chmod D+x for starters.



                (I'm assuming that the owner is properly set for your copied files. If not then there is also a --chown=USER:GROUP flag available.)



                Note: I'm working with the limited amount of information you've supplied. If you aren't able to figure things out from the above then please run ls -la against one of the target directories and post the result in your question.






                share|improve this answer












                There are many rsync options whose purpose is to preserve attributes of copied files/dirs. Assuming that your source files have the permissions you want use the flag for preserving permissions: --perms (or -p).



                If the source files don't have the permissions you need then you can use the --chmod flag to set permissions of the target files/dirs to whatever you want. For this to work you also need to specify --perms. The chmod flag takes arguments similar to the chmod(1) command but extends them so you can specify permissions only for directories or only for files. For example this would give write permission to the owner for files only: rsync --perms --chmod Fu+w. It looks like you may not have execute permissions on your directories (at the least) so you could try --chmod D+x for starters.



                (I'm assuming that the owner is properly set for your copied files. If not then there is also a --chown=USER:GROUP flag available.)



                Note: I'm working with the limited amount of information you've supplied. If you aren't able to figure things out from the above then please run ls -la against one of the target directories and post the result in your question.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 29 '17 at 5:29









                B Layer

                4,0141525




                4,0141525






























                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f388757%2fyou-dont-currently-have-permission-to-access-this-folder%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







                    Popular posts from this blog

                    サソリ

                    広島県道265号伴広島線

                    Setup Asymptote in Texstudio