How to run jhbuild as root











up vote
2
down vote

favorite












I have installed jhbuild and set the PATH variable to $PATH:~/.local/bin. Now when I run jhbuild command I get error: You should not use jhbuild as root user and when I change the user to non-root and again I change the PATH value to above one replacing ~ with /root, I get error jhbuild command not found.
I am using kali linux so the default user is root user.










share|improve this question
























  • This is probably a permission issue, can you edit and add the output of this command ls -la /root (The user don't have the right to see what is inside /root, so it will not find the command)
    – Félicien
    Feb 22 at 13:38












  • @Félicien Now I can execute jhbuild command but I it gives me error jhbuild: install prefix (/jhbuild/install) can not be created
    – Debian_yadav
    Feb 22 at 13:52








  • 1




    Still seems to be a permission issue. Is there a reason you installed it in /root ? a solution would be to move it to /opt and change the ownership of the directory (and below) to the user you want to use
    – Félicien
    Feb 22 at 13:56






  • 1




    @Félicien you are right I changed the permissions, now it seems to work.
    – Debian_yadav
    Feb 22 at 14:05










  • @Félicien but I am still looking for the solution of: You should not use jhbuild as root user
    – Debian_yadav
    Feb 22 at 14:15















up vote
2
down vote

favorite












I have installed jhbuild and set the PATH variable to $PATH:~/.local/bin. Now when I run jhbuild command I get error: You should not use jhbuild as root user and when I change the user to non-root and again I change the PATH value to above one replacing ~ with /root, I get error jhbuild command not found.
I am using kali linux so the default user is root user.










share|improve this question
























  • This is probably a permission issue, can you edit and add the output of this command ls -la /root (The user don't have the right to see what is inside /root, so it will not find the command)
    – Félicien
    Feb 22 at 13:38












  • @Félicien Now I can execute jhbuild command but I it gives me error jhbuild: install prefix (/jhbuild/install) can not be created
    – Debian_yadav
    Feb 22 at 13:52








  • 1




    Still seems to be a permission issue. Is there a reason you installed it in /root ? a solution would be to move it to /opt and change the ownership of the directory (and below) to the user you want to use
    – Félicien
    Feb 22 at 13:56






  • 1




    @Félicien you are right I changed the permissions, now it seems to work.
    – Debian_yadav
    Feb 22 at 14:05










  • @Félicien but I am still looking for the solution of: You should not use jhbuild as root user
    – Debian_yadav
    Feb 22 at 14:15













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I have installed jhbuild and set the PATH variable to $PATH:~/.local/bin. Now when I run jhbuild command I get error: You should not use jhbuild as root user and when I change the user to non-root and again I change the PATH value to above one replacing ~ with /root, I get error jhbuild command not found.
I am using kali linux so the default user is root user.










share|improve this question















I have installed jhbuild and set the PATH variable to $PATH:~/.local/bin. Now when I run jhbuild command I get error: You should not use jhbuild as root user and when I change the user to non-root and again I change the PATH value to above one replacing ~ with /root, I get error jhbuild command not found.
I am using kali linux so the default user is root user.







gnome python root gtk3 jhbuild






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 22 at 21:14

























asked Feb 22 at 13:36









Debian_yadav

1,3653922




1,3653922












  • This is probably a permission issue, can you edit and add the output of this command ls -la /root (The user don't have the right to see what is inside /root, so it will not find the command)
    – Félicien
    Feb 22 at 13:38












  • @Félicien Now I can execute jhbuild command but I it gives me error jhbuild: install prefix (/jhbuild/install) can not be created
    – Debian_yadav
    Feb 22 at 13:52








  • 1




    Still seems to be a permission issue. Is there a reason you installed it in /root ? a solution would be to move it to /opt and change the ownership of the directory (and below) to the user you want to use
    – Félicien
    Feb 22 at 13:56






  • 1




    @Félicien you are right I changed the permissions, now it seems to work.
    – Debian_yadav
    Feb 22 at 14:05










  • @Félicien but I am still looking for the solution of: You should not use jhbuild as root user
    – Debian_yadav
    Feb 22 at 14:15


















  • This is probably a permission issue, can you edit and add the output of this command ls -la /root (The user don't have the right to see what is inside /root, so it will not find the command)
    – Félicien
    Feb 22 at 13:38












  • @Félicien Now I can execute jhbuild command but I it gives me error jhbuild: install prefix (/jhbuild/install) can not be created
    – Debian_yadav
    Feb 22 at 13:52








  • 1




    Still seems to be a permission issue. Is there a reason you installed it in /root ? a solution would be to move it to /opt and change the ownership of the directory (and below) to the user you want to use
    – Félicien
    Feb 22 at 13:56






  • 1




    @Félicien you are right I changed the permissions, now it seems to work.
    – Debian_yadav
    Feb 22 at 14:05










  • @Félicien but I am still looking for the solution of: You should not use jhbuild as root user
    – Debian_yadav
    Feb 22 at 14:15
















This is probably a permission issue, can you edit and add the output of this command ls -la /root (The user don't have the right to see what is inside /root, so it will not find the command)
– Félicien
Feb 22 at 13:38






This is probably a permission issue, can you edit and add the output of this command ls -la /root (The user don't have the right to see what is inside /root, so it will not find the command)
– Félicien
Feb 22 at 13:38














@Félicien Now I can execute jhbuild command but I it gives me error jhbuild: install prefix (/jhbuild/install) can not be created
– Debian_yadav
Feb 22 at 13:52






@Félicien Now I can execute jhbuild command but I it gives me error jhbuild: install prefix (/jhbuild/install) can not be created
– Debian_yadav
Feb 22 at 13:52






1




1




Still seems to be a permission issue. Is there a reason you installed it in /root ? a solution would be to move it to /opt and change the ownership of the directory (and below) to the user you want to use
– Félicien
Feb 22 at 13:56




Still seems to be a permission issue. Is there a reason you installed it in /root ? a solution would be to move it to /opt and change the ownership of the directory (and below) to the user you want to use
– Félicien
Feb 22 at 13:56




1




1




@Félicien you are right I changed the permissions, now it seems to work.
– Debian_yadav
Feb 22 at 14:05




@Félicien you are right I changed the permissions, now it seems to work.
– Debian_yadav
Feb 22 at 14:05












@Félicien but I am still looking for the solution of: You should not use jhbuild as root user
– Debian_yadav
Feb 22 at 14:15




@Félicien but I am still looking for the solution of: You should not use jhbuild as root user
– Debian_yadav
Feb 22 at 14:15










2 Answers
2






active

oldest

votes

















up vote
0
down vote



accepted










So I found the solution for command not found I changed the permissions of the directory from where shell is looking for command(/root/.local/bin) and all the files which jhbuild wants to create from the command(e.g. /jhbuild,/jhbuild/.cache). I create them manually and changed their permissions in similar manner.






share|improve this answer




























    up vote
    0
    down vote













    The behaviour you're experiencing is unrelated to permissions or the location of the binary, but to the user executing it. Specify the environment variable JHBUILD_RUN_AS_ROOT with any value, e.g. env JHBUILD_RUN_AS_ROOT= jhbuild ... in order to be able to run jhbuild as root.



    This is a rather undocumented feature, I'm sure I suggested an improvement of the application feedback once which has been ignored; see https://github.com/GNOME/jhbuild/blob/master/jhbuild/main.py#L97 for an idea why this should work.






    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: 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%2f425891%2fhow-to-run-jhbuild-as-root%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote



      accepted










      So I found the solution for command not found I changed the permissions of the directory from where shell is looking for command(/root/.local/bin) and all the files which jhbuild wants to create from the command(e.g. /jhbuild,/jhbuild/.cache). I create them manually and changed their permissions in similar manner.






      share|improve this answer

























        up vote
        0
        down vote



        accepted










        So I found the solution for command not found I changed the permissions of the directory from where shell is looking for command(/root/.local/bin) and all the files which jhbuild wants to create from the command(e.g. /jhbuild,/jhbuild/.cache). I create them manually and changed their permissions in similar manner.






        share|improve this answer























          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          So I found the solution for command not found I changed the permissions of the directory from where shell is looking for command(/root/.local/bin) and all the files which jhbuild wants to create from the command(e.g. /jhbuild,/jhbuild/.cache). I create them manually and changed their permissions in similar manner.






          share|improve this answer












          So I found the solution for command not found I changed the permissions of the directory from where shell is looking for command(/root/.local/bin) and all the files which jhbuild wants to create from the command(e.g. /jhbuild,/jhbuild/.cache). I create them manually and changed their permissions in similar manner.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 22 at 16:57









          Debian_yadav

          1,3653922




          1,3653922
























              up vote
              0
              down vote













              The behaviour you're experiencing is unrelated to permissions or the location of the binary, but to the user executing it. Specify the environment variable JHBUILD_RUN_AS_ROOT with any value, e.g. env JHBUILD_RUN_AS_ROOT= jhbuild ... in order to be able to run jhbuild as root.



              This is a rather undocumented feature, I'm sure I suggested an improvement of the application feedback once which has been ignored; see https://github.com/GNOME/jhbuild/blob/master/jhbuild/main.py#L97 for an idea why this should work.






              share|improve this answer

























                up vote
                0
                down vote













                The behaviour you're experiencing is unrelated to permissions or the location of the binary, but to the user executing it. Specify the environment variable JHBUILD_RUN_AS_ROOT with any value, e.g. env JHBUILD_RUN_AS_ROOT= jhbuild ... in order to be able to run jhbuild as root.



                This is a rather undocumented feature, I'm sure I suggested an improvement of the application feedback once which has been ignored; see https://github.com/GNOME/jhbuild/blob/master/jhbuild/main.py#L97 for an idea why this should work.






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  The behaviour you're experiencing is unrelated to permissions or the location of the binary, but to the user executing it. Specify the environment variable JHBUILD_RUN_AS_ROOT with any value, e.g. env JHBUILD_RUN_AS_ROOT= jhbuild ... in order to be able to run jhbuild as root.



                  This is a rather undocumented feature, I'm sure I suggested an improvement of the application feedback once which has been ignored; see https://github.com/GNOME/jhbuild/blob/master/jhbuild/main.py#L97 for an idea why this should work.






                  share|improve this answer












                  The behaviour you're experiencing is unrelated to permissions or the location of the binary, but to the user executing it. Specify the environment variable JHBUILD_RUN_AS_ROOT with any value, e.g. env JHBUILD_RUN_AS_ROOT= jhbuild ... in order to be able to run jhbuild as root.



                  This is a rather undocumented feature, I'm sure I suggested an improvement of the application feedback once which has been ignored; see https://github.com/GNOME/jhbuild/blob/master/jhbuild/main.py#L97 for an idea why this should work.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered yesterday









                  Karl Richter

                  7171823




                  7171823






























                      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%2f425891%2fhow-to-run-jhbuild-as-root%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

                      Accessing regular linux commands in Huawei's Dopra Linux

                      Can't connect RFCOMM socket: Host is down

                      Kernel panic - not syncing: Fatal Exception in Interrupt