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.
gnome python root gtk3 jhbuild
add a comment |
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.
gnome python root gtk3 jhbuild
This is probably a permission issue, can you edit and add the output of this commandls -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
add a comment |
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.
gnome python root gtk3 jhbuild
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
gnome python root gtk3 jhbuild
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 commandls -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
add a comment |
This is probably a permission issue, can you edit and add the output of this commandls -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
add a comment |
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.
add a comment |
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
add a comment |
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.
add a comment |
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.
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.
answered Feb 22 at 16:57
Debian_yadav
1,3653922
1,3653922
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered yesterday
Karl Richter
7171823
7171823
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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