Failed to update Zotero after changing permission with chmod 707
I am running Ubuntu 16.04 LTS and I have installed Zotero adding the PPA, following the instructions in this page. It worked all well, but when I try to get any update, I get the following error message:
In order to "modify the Zotero program directory to be writable by your user account" I applied sudo chmod 707 zotero
, as described here and, as far as can see from the screen shot below (which was generated by the command ls -lg /usr/bin
), the changes took place successfully:
Is there anything wrong with this terminal output? Shouldn't I have reading, writing and execute (rwx
) permissions for user, according to this output?
16.04 command-line permissions chmod zotero
add a comment |
I am running Ubuntu 16.04 LTS and I have installed Zotero adding the PPA, following the instructions in this page. It worked all well, but when I try to get any update, I get the following error message:
In order to "modify the Zotero program directory to be writable by your user account" I applied sudo chmod 707 zotero
, as described here and, as far as can see from the screen shot below (which was generated by the command ls -lg /usr/bin
), the changes took place successfully:
Is there anything wrong with this terminal output? Shouldn't I have reading, writing and execute (rwx
) permissions for user, according to this output?
16.04 command-line permissions chmod zotero
add a comment |
I am running Ubuntu 16.04 LTS and I have installed Zotero adding the PPA, following the instructions in this page. It worked all well, but when I try to get any update, I get the following error message:
In order to "modify the Zotero program directory to be writable by your user account" I applied sudo chmod 707 zotero
, as described here and, as far as can see from the screen shot below (which was generated by the command ls -lg /usr/bin
), the changes took place successfully:
Is there anything wrong with this terminal output? Shouldn't I have reading, writing and execute (rwx
) permissions for user, according to this output?
16.04 command-line permissions chmod zotero
I am running Ubuntu 16.04 LTS and I have installed Zotero adding the PPA, following the instructions in this page. It worked all well, but when I try to get any update, I get the following error message:
In order to "modify the Zotero program directory to be writable by your user account" I applied sudo chmod 707 zotero
, as described here and, as far as can see from the screen shot below (which was generated by the command ls -lg /usr/bin
), the changes took place successfully:
Is there anything wrong with this terminal output? Shouldn't I have reading, writing and execute (rwx
) permissions for user, according to this output?
16.04 command-line permissions chmod zotero
16.04 command-line permissions chmod zotero
asked Aug 1 '17 at 10:03
BCArg
217212
217212
add a comment |
add a comment |
5 Answers
5
active
oldest
votes
With that command you only changed the permissions for the executable file, not for all the files the program uses (and probably needs to update).
I recommend that you chmod the /usr/bin/zotero file back to 755 and instead run the Zotero updater with sudo and it should have the rights needed to update itself.
EDIT: It is recommended to run sudo su
to open up a root shell and then just run zotero
as a command line command to open it with root rights. Directly running sudo zotero
is not recommended because it uses your real home directory and you may end up with root-owned files in your home directory.
that makes sense. Do you know how I can run the Zotero updater with sudo?
– BCArg
Aug 1 '17 at 10:26
1
@BCArg Assuming the Updater fires up as soon as you launch zotero, it should be enough to runsudo su
to open up a root shell and then just runzotero
as a command line command to open it with root rights. Directly runningsudo zotero
is not recommended because it uses your real home directory and you may end up with root-owned files in your home directory.
– Tim Schumacher
Aug 1 '17 at 10:31
1
@ Tim Schumacher. Thanks for the reply. When I ransudo su
thenzotero
a message dialog with the following messaged popped-up: "you appear to be running Zotero as root. This is insecure and may prevent Zotero from functioning when launched from your user account. If you wish to install an automatic update, modify the Zotero program directory to be writeable by your user account.". Do you think it is safe to continue? Anyways, the updates are not that important for me by now.
– BCArg
Aug 1 '17 at 10:49
1
@BCArg The problem with changing the permissions for that directory (and all subdirectories and files) is that you probably won't be able to restore the original permissions on all files. As we changed the home directory to /root by runningsudo su
(instead of just runningsudo zotero
as the program seems to assume), it should all be fine if you continue and let it run the update.
– Tim Schumacher
Aug 1 '17 at 10:52
@ Tim Schumacher: thanks for the comments, but I think I will leave the update off. Zotero is running fine and, most importantly, this is not my own computer, otherwise I would assume the "risk".
– BCArg
Aug 1 '17 at 11:01
add a comment |
You'll want to also change the permissions of the /opt/zotero
folder by running:
sudo chmod 707 /usr/bin/zotero && sudo chmod -R 707 /opt/zotero
1
why707
? I can't think of any good reason for that...
– Zanna
Mar 20 at 14:33
add a comment |
I just resolved the issue by changing ownership of ~/zotero
directory and successfully upgraded from Zotero Help>Check for Updates...
link. For some reason, previous ownership was held by 501, which is held by OSX user.
sudo chown -R <username>:<username> ~/zotero
add a comment |
This depends on how (and where) did you install Zotero. I used the smathot/cogscinl
repository to install mine (full installation instructions):
sudo apt-add-repository ppa:smathot/cogscinl
If this is your case, you will probably find your Zotero directory in /opt/zotero
. You need to change the permission to the user that will update Zotero, basically this:
sudo chown USERNAME /opt/zotero
add a comment |
In Ubuntu 16.04, I did the following:
In the terminal execute Zotero as root
sudo zotero
Enter the password and press Continue to the following message
Press Continue
- In Zotero, click on menu Help -> Check for update, install it and restart. That's it!
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f941833%2ffailed-to-update-zotero-after-changing-permission-with-chmod-707%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
With that command you only changed the permissions for the executable file, not for all the files the program uses (and probably needs to update).
I recommend that you chmod the /usr/bin/zotero file back to 755 and instead run the Zotero updater with sudo and it should have the rights needed to update itself.
EDIT: It is recommended to run sudo su
to open up a root shell and then just run zotero
as a command line command to open it with root rights. Directly running sudo zotero
is not recommended because it uses your real home directory and you may end up with root-owned files in your home directory.
that makes sense. Do you know how I can run the Zotero updater with sudo?
– BCArg
Aug 1 '17 at 10:26
1
@BCArg Assuming the Updater fires up as soon as you launch zotero, it should be enough to runsudo su
to open up a root shell and then just runzotero
as a command line command to open it with root rights. Directly runningsudo zotero
is not recommended because it uses your real home directory and you may end up with root-owned files in your home directory.
– Tim Schumacher
Aug 1 '17 at 10:31
1
@ Tim Schumacher. Thanks for the reply. When I ransudo su
thenzotero
a message dialog with the following messaged popped-up: "you appear to be running Zotero as root. This is insecure and may prevent Zotero from functioning when launched from your user account. If you wish to install an automatic update, modify the Zotero program directory to be writeable by your user account.". Do you think it is safe to continue? Anyways, the updates are not that important for me by now.
– BCArg
Aug 1 '17 at 10:49
1
@BCArg The problem with changing the permissions for that directory (and all subdirectories and files) is that you probably won't be able to restore the original permissions on all files. As we changed the home directory to /root by runningsudo su
(instead of just runningsudo zotero
as the program seems to assume), it should all be fine if you continue and let it run the update.
– Tim Schumacher
Aug 1 '17 at 10:52
@ Tim Schumacher: thanks for the comments, but I think I will leave the update off. Zotero is running fine and, most importantly, this is not my own computer, otherwise I would assume the "risk".
– BCArg
Aug 1 '17 at 11:01
add a comment |
With that command you only changed the permissions for the executable file, not for all the files the program uses (and probably needs to update).
I recommend that you chmod the /usr/bin/zotero file back to 755 and instead run the Zotero updater with sudo and it should have the rights needed to update itself.
EDIT: It is recommended to run sudo su
to open up a root shell and then just run zotero
as a command line command to open it with root rights. Directly running sudo zotero
is not recommended because it uses your real home directory and you may end up with root-owned files in your home directory.
that makes sense. Do you know how I can run the Zotero updater with sudo?
– BCArg
Aug 1 '17 at 10:26
1
@BCArg Assuming the Updater fires up as soon as you launch zotero, it should be enough to runsudo su
to open up a root shell and then just runzotero
as a command line command to open it with root rights. Directly runningsudo zotero
is not recommended because it uses your real home directory and you may end up with root-owned files in your home directory.
– Tim Schumacher
Aug 1 '17 at 10:31
1
@ Tim Schumacher. Thanks for the reply. When I ransudo su
thenzotero
a message dialog with the following messaged popped-up: "you appear to be running Zotero as root. This is insecure and may prevent Zotero from functioning when launched from your user account. If you wish to install an automatic update, modify the Zotero program directory to be writeable by your user account.". Do you think it is safe to continue? Anyways, the updates are not that important for me by now.
– BCArg
Aug 1 '17 at 10:49
1
@BCArg The problem with changing the permissions for that directory (and all subdirectories and files) is that you probably won't be able to restore the original permissions on all files. As we changed the home directory to /root by runningsudo su
(instead of just runningsudo zotero
as the program seems to assume), it should all be fine if you continue and let it run the update.
– Tim Schumacher
Aug 1 '17 at 10:52
@ Tim Schumacher: thanks for the comments, but I think I will leave the update off. Zotero is running fine and, most importantly, this is not my own computer, otherwise I would assume the "risk".
– BCArg
Aug 1 '17 at 11:01
add a comment |
With that command you only changed the permissions for the executable file, not for all the files the program uses (and probably needs to update).
I recommend that you chmod the /usr/bin/zotero file back to 755 and instead run the Zotero updater with sudo and it should have the rights needed to update itself.
EDIT: It is recommended to run sudo su
to open up a root shell and then just run zotero
as a command line command to open it with root rights. Directly running sudo zotero
is not recommended because it uses your real home directory and you may end up with root-owned files in your home directory.
With that command you only changed the permissions for the executable file, not for all the files the program uses (and probably needs to update).
I recommend that you chmod the /usr/bin/zotero file back to 755 and instead run the Zotero updater with sudo and it should have the rights needed to update itself.
EDIT: It is recommended to run sudo su
to open up a root shell and then just run zotero
as a command line command to open it with root rights. Directly running sudo zotero
is not recommended because it uses your real home directory and you may end up with root-owned files in your home directory.
edited Aug 1 '17 at 10:35
answered Aug 1 '17 at 10:19
Tim Schumacher
24519
24519
that makes sense. Do you know how I can run the Zotero updater with sudo?
– BCArg
Aug 1 '17 at 10:26
1
@BCArg Assuming the Updater fires up as soon as you launch zotero, it should be enough to runsudo su
to open up a root shell and then just runzotero
as a command line command to open it with root rights. Directly runningsudo zotero
is not recommended because it uses your real home directory and you may end up with root-owned files in your home directory.
– Tim Schumacher
Aug 1 '17 at 10:31
1
@ Tim Schumacher. Thanks for the reply. When I ransudo su
thenzotero
a message dialog with the following messaged popped-up: "you appear to be running Zotero as root. This is insecure and may prevent Zotero from functioning when launched from your user account. If you wish to install an automatic update, modify the Zotero program directory to be writeable by your user account.". Do you think it is safe to continue? Anyways, the updates are not that important for me by now.
– BCArg
Aug 1 '17 at 10:49
1
@BCArg The problem with changing the permissions for that directory (and all subdirectories and files) is that you probably won't be able to restore the original permissions on all files. As we changed the home directory to /root by runningsudo su
(instead of just runningsudo zotero
as the program seems to assume), it should all be fine if you continue and let it run the update.
– Tim Schumacher
Aug 1 '17 at 10:52
@ Tim Schumacher: thanks for the comments, but I think I will leave the update off. Zotero is running fine and, most importantly, this is not my own computer, otherwise I would assume the "risk".
– BCArg
Aug 1 '17 at 11:01
add a comment |
that makes sense. Do you know how I can run the Zotero updater with sudo?
– BCArg
Aug 1 '17 at 10:26
1
@BCArg Assuming the Updater fires up as soon as you launch zotero, it should be enough to runsudo su
to open up a root shell and then just runzotero
as a command line command to open it with root rights. Directly runningsudo zotero
is not recommended because it uses your real home directory and you may end up with root-owned files in your home directory.
– Tim Schumacher
Aug 1 '17 at 10:31
1
@ Tim Schumacher. Thanks for the reply. When I ransudo su
thenzotero
a message dialog with the following messaged popped-up: "you appear to be running Zotero as root. This is insecure and may prevent Zotero from functioning when launched from your user account. If you wish to install an automatic update, modify the Zotero program directory to be writeable by your user account.". Do you think it is safe to continue? Anyways, the updates are not that important for me by now.
– BCArg
Aug 1 '17 at 10:49
1
@BCArg The problem with changing the permissions for that directory (and all subdirectories and files) is that you probably won't be able to restore the original permissions on all files. As we changed the home directory to /root by runningsudo su
(instead of just runningsudo zotero
as the program seems to assume), it should all be fine if you continue and let it run the update.
– Tim Schumacher
Aug 1 '17 at 10:52
@ Tim Schumacher: thanks for the comments, but I think I will leave the update off. Zotero is running fine and, most importantly, this is not my own computer, otherwise I would assume the "risk".
– BCArg
Aug 1 '17 at 11:01
that makes sense. Do you know how I can run the Zotero updater with sudo?
– BCArg
Aug 1 '17 at 10:26
that makes sense. Do you know how I can run the Zotero updater with sudo?
– BCArg
Aug 1 '17 at 10:26
1
1
@BCArg Assuming the Updater fires up as soon as you launch zotero, it should be enough to run
sudo su
to open up a root shell and then just run zotero
as a command line command to open it with root rights. Directly running sudo zotero
is not recommended because it uses your real home directory and you may end up with root-owned files in your home directory.– Tim Schumacher
Aug 1 '17 at 10:31
@BCArg Assuming the Updater fires up as soon as you launch zotero, it should be enough to run
sudo su
to open up a root shell and then just run zotero
as a command line command to open it with root rights. Directly running sudo zotero
is not recommended because it uses your real home directory and you may end up with root-owned files in your home directory.– Tim Schumacher
Aug 1 '17 at 10:31
1
1
@ Tim Schumacher. Thanks for the reply. When I ran
sudo su
then zotero
a message dialog with the following messaged popped-up: "you appear to be running Zotero as root. This is insecure and may prevent Zotero from functioning when launched from your user account. If you wish to install an automatic update, modify the Zotero program directory to be writeable by your user account.". Do you think it is safe to continue? Anyways, the updates are not that important for me by now.– BCArg
Aug 1 '17 at 10:49
@ Tim Schumacher. Thanks for the reply. When I ran
sudo su
then zotero
a message dialog with the following messaged popped-up: "you appear to be running Zotero as root. This is insecure and may prevent Zotero from functioning when launched from your user account. If you wish to install an automatic update, modify the Zotero program directory to be writeable by your user account.". Do you think it is safe to continue? Anyways, the updates are not that important for me by now.– BCArg
Aug 1 '17 at 10:49
1
1
@BCArg The problem with changing the permissions for that directory (and all subdirectories and files) is that you probably won't be able to restore the original permissions on all files. As we changed the home directory to /root by running
sudo su
(instead of just running sudo zotero
as the program seems to assume), it should all be fine if you continue and let it run the update.– Tim Schumacher
Aug 1 '17 at 10:52
@BCArg The problem with changing the permissions for that directory (and all subdirectories and files) is that you probably won't be able to restore the original permissions on all files. As we changed the home directory to /root by running
sudo su
(instead of just running sudo zotero
as the program seems to assume), it should all be fine if you continue and let it run the update.– Tim Schumacher
Aug 1 '17 at 10:52
@ Tim Schumacher: thanks for the comments, but I think I will leave the update off. Zotero is running fine and, most importantly, this is not my own computer, otherwise I would assume the "risk".
– BCArg
Aug 1 '17 at 11:01
@ Tim Schumacher: thanks for the comments, but I think I will leave the update off. Zotero is running fine and, most importantly, this is not my own computer, otherwise I would assume the "risk".
– BCArg
Aug 1 '17 at 11:01
add a comment |
You'll want to also change the permissions of the /opt/zotero
folder by running:
sudo chmod 707 /usr/bin/zotero && sudo chmod -R 707 /opt/zotero
1
why707
? I can't think of any good reason for that...
– Zanna
Mar 20 at 14:33
add a comment |
You'll want to also change the permissions of the /opt/zotero
folder by running:
sudo chmod 707 /usr/bin/zotero && sudo chmod -R 707 /opt/zotero
1
why707
? I can't think of any good reason for that...
– Zanna
Mar 20 at 14:33
add a comment |
You'll want to also change the permissions of the /opt/zotero
folder by running:
sudo chmod 707 /usr/bin/zotero && sudo chmod -R 707 /opt/zotero
You'll want to also change the permissions of the /opt/zotero
folder by running:
sudo chmod 707 /usr/bin/zotero && sudo chmod -R 707 /opt/zotero
edited Oct 24 '17 at 10:48
answered Oct 23 '17 at 17:12
EdoDodo
1314
1314
1
why707
? I can't think of any good reason for that...
– Zanna
Mar 20 at 14:33
add a comment |
1
why707
? I can't think of any good reason for that...
– Zanna
Mar 20 at 14:33
1
1
why
707
? I can't think of any good reason for that...– Zanna
Mar 20 at 14:33
why
707
? I can't think of any good reason for that...– Zanna
Mar 20 at 14:33
add a comment |
I just resolved the issue by changing ownership of ~/zotero
directory and successfully upgraded from Zotero Help>Check for Updates...
link. For some reason, previous ownership was held by 501, which is held by OSX user.
sudo chown -R <username>:<username> ~/zotero
add a comment |
I just resolved the issue by changing ownership of ~/zotero
directory and successfully upgraded from Zotero Help>Check for Updates...
link. For some reason, previous ownership was held by 501, which is held by OSX user.
sudo chown -R <username>:<username> ~/zotero
add a comment |
I just resolved the issue by changing ownership of ~/zotero
directory and successfully upgraded from Zotero Help>Check for Updates...
link. For some reason, previous ownership was held by 501, which is held by OSX user.
sudo chown -R <username>:<username> ~/zotero
I just resolved the issue by changing ownership of ~/zotero
directory and successfully upgraded from Zotero Help>Check for Updates...
link. For some reason, previous ownership was held by 501, which is held by OSX user.
sudo chown -R <username>:<username> ~/zotero
answered Oct 20 at 16:15
saurabheights
1135
1135
add a comment |
add a comment |
This depends on how (and where) did you install Zotero. I used the smathot/cogscinl
repository to install mine (full installation instructions):
sudo apt-add-repository ppa:smathot/cogscinl
If this is your case, you will probably find your Zotero directory in /opt/zotero
. You need to change the permission to the user that will update Zotero, basically this:
sudo chown USERNAME /opt/zotero
add a comment |
This depends on how (and where) did you install Zotero. I used the smathot/cogscinl
repository to install mine (full installation instructions):
sudo apt-add-repository ppa:smathot/cogscinl
If this is your case, you will probably find your Zotero directory in /opt/zotero
. You need to change the permission to the user that will update Zotero, basically this:
sudo chown USERNAME /opt/zotero
add a comment |
This depends on how (and where) did you install Zotero. I used the smathot/cogscinl
repository to install mine (full installation instructions):
sudo apt-add-repository ppa:smathot/cogscinl
If this is your case, you will probably find your Zotero directory in /opt/zotero
. You need to change the permission to the user that will update Zotero, basically this:
sudo chown USERNAME /opt/zotero
This depends on how (and where) did you install Zotero. I used the smathot/cogscinl
repository to install mine (full installation instructions):
sudo apt-add-repository ppa:smathot/cogscinl
If this is your case, you will probably find your Zotero directory in /opt/zotero
. You need to change the permission to the user that will update Zotero, basically this:
sudo chown USERNAME /opt/zotero
answered Dec 21 at 10:44
toto_tico
231138
231138
add a comment |
add a comment |
In Ubuntu 16.04, I did the following:
In the terminal execute Zotero as root
sudo zotero
Enter the password and press Continue to the following message
Press Continue
- In Zotero, click on menu Help -> Check for update, install it and restart. That's it!
add a comment |
In Ubuntu 16.04, I did the following:
In the terminal execute Zotero as root
sudo zotero
Enter the password and press Continue to the following message
Press Continue
- In Zotero, click on menu Help -> Check for update, install it and restart. That's it!
add a comment |
In Ubuntu 16.04, I did the following:
In the terminal execute Zotero as root
sudo zotero
Enter the password and press Continue to the following message
Press Continue
- In Zotero, click on menu Help -> Check for update, install it and restart. That's it!
In Ubuntu 16.04, I did the following:
In the terminal execute Zotero as root
sudo zotero
Enter the password and press Continue to the following message
Press Continue
- In Zotero, click on menu Help -> Check for update, install it and restart. That's it!
answered Sep 30 '17 at 13:26
fjramireg
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f941833%2ffailed-to-update-zotero-after-changing-permission-with-chmod-707%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