Cannot change file to www-data, keep getting “chown: www-data: Invalid argument”
OK, so I have been at this issue for the better part of 2 hours. I tried this original command
sudo chown www-data:www-data newlogo.png
I got this:
chown: www--data: Invalid argument
I have created a user and a group www-data, changed the file ownership to it but it still won't upload to the server, because:
newlogo.png: open for write: permission denied
Error: File transfer failed
My issue is this. I need to upload this file to a server and change the ownership to www-data, everything seems like I have done that when I do it through "Get Info" it says a user www-data has permission to read and write, but it still won't upload. And when I change it manually through a terminal I still get the chown: www-data: Invalid argument error.
I am not the greatest at Apache and am about to give up. The only thing that I can see left is that the permission on the server I am trying to upload to are not set correctly to allow me to upload this file.
macos osx-lion apache-http-server
add a comment |
OK, so I have been at this issue for the better part of 2 hours. I tried this original command
sudo chown www-data:www-data newlogo.png
I got this:
chown: www--data: Invalid argument
I have created a user and a group www-data, changed the file ownership to it but it still won't upload to the server, because:
newlogo.png: open for write: permission denied
Error: File transfer failed
My issue is this. I need to upload this file to a server and change the ownership to www-data, everything seems like I have done that when I do it through "Get Info" it says a user www-data has permission to read and write, but it still won't upload. And when I change it manually through a terminal I still get the chown: www-data: Invalid argument error.
I am not the greatest at Apache and am about to give up. The only thing that I can see left is that the permission on the server I am trying to upload to are not set correctly to allow me to upload this file.
macos osx-lion apache-http-server
Did you try including it in quotes?
– agirish
Oct 23 '12 at 23:49
2
Need more info here: did you create the www-data user & group on the client, or the server? Are you running the chown command on the client or the server? What are the permissions on the folder the file is in on the server? And finally, how are you trying to upload the file to the server?
– Gordon Davisson
Oct 24 '12 at 3:59
What shell are you using?
– ott--
Oct 24 '12 at 21:06
add a comment |
OK, so I have been at this issue for the better part of 2 hours. I tried this original command
sudo chown www-data:www-data newlogo.png
I got this:
chown: www--data: Invalid argument
I have created a user and a group www-data, changed the file ownership to it but it still won't upload to the server, because:
newlogo.png: open for write: permission denied
Error: File transfer failed
My issue is this. I need to upload this file to a server and change the ownership to www-data, everything seems like I have done that when I do it through "Get Info" it says a user www-data has permission to read and write, but it still won't upload. And when I change it manually through a terminal I still get the chown: www-data: Invalid argument error.
I am not the greatest at Apache and am about to give up. The only thing that I can see left is that the permission on the server I am trying to upload to are not set correctly to allow me to upload this file.
macos osx-lion apache-http-server
OK, so I have been at this issue for the better part of 2 hours. I tried this original command
sudo chown www-data:www-data newlogo.png
I got this:
chown: www--data: Invalid argument
I have created a user and a group www-data, changed the file ownership to it but it still won't upload to the server, because:
newlogo.png: open for write: permission denied
Error: File transfer failed
My issue is this. I need to upload this file to a server and change the ownership to www-data, everything seems like I have done that when I do it through "Get Info" it says a user www-data has permission to read and write, but it still won't upload. And when I change it manually through a terminal I still get the chown: www-data: Invalid argument error.
I am not the greatest at Apache and am about to give up. The only thing that I can see left is that the permission on the server I am trying to upload to are not set correctly to allow me to upload this file.
macos osx-lion apache-http-server
macos osx-lion apache-http-server
edited Oct 23 '12 at 23:39
Canadian Luke
18.1k3090148
18.1k3090148
asked Oct 23 '12 at 23:16
Dean KarasinskiDean Karasinski
111
111
Did you try including it in quotes?
– agirish
Oct 23 '12 at 23:49
2
Need more info here: did you create the www-data user & group on the client, or the server? Are you running the chown command on the client or the server? What are the permissions on the folder the file is in on the server? And finally, how are you trying to upload the file to the server?
– Gordon Davisson
Oct 24 '12 at 3:59
What shell are you using?
– ott--
Oct 24 '12 at 21:06
add a comment |
Did you try including it in quotes?
– agirish
Oct 23 '12 at 23:49
2
Need more info here: did you create the www-data user & group on the client, or the server? Are you running the chown command on the client or the server? What are the permissions on the folder the file is in on the server? And finally, how are you trying to upload the file to the server?
– Gordon Davisson
Oct 24 '12 at 3:59
What shell are you using?
– ott--
Oct 24 '12 at 21:06
Did you try including it in quotes?
– agirish
Oct 23 '12 at 23:49
Did you try including it in quotes?
– agirish
Oct 23 '12 at 23:49
2
2
Need more info here: did you create the www-data user & group on the client, or the server? Are you running the chown command on the client or the server? What are the permissions on the folder the file is in on the server? And finally, how are you trying to upload the file to the server?
– Gordon Davisson
Oct 24 '12 at 3:59
Need more info here: did you create the www-data user & group on the client, or the server? Are you running the chown command on the client or the server? What are the permissions on the folder the file is in on the server? And finally, how are you trying to upload the file to the server?
– Gordon Davisson
Oct 24 '12 at 3:59
What shell are you using?
– ott--
Oct 24 '12 at 21:06
What shell are you using?
– ott--
Oct 24 '12 at 21:06
add a comment |
1 Answer
1
active
oldest
votes
Try the following:
sudo chown www-data newlogo.png
sudo chgrp www-data newlogo.png
Hey guys thanks for all the help here. I actually figured it all out. I was trying to do a lot of it client side and not server side. My bad for not understanding it better before posting the question. Again, thanks for the time.
– Dean Karasinski
Oct 25 '12 at 0:37
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f491869%2fcannot-change-file-to-www-data-keep-getting-chown-www-data-invalid-argument%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
Try the following:
sudo chown www-data newlogo.png
sudo chgrp www-data newlogo.png
Hey guys thanks for all the help here. I actually figured it all out. I was trying to do a lot of it client side and not server side. My bad for not understanding it better before posting the question. Again, thanks for the time.
– Dean Karasinski
Oct 25 '12 at 0:37
add a comment |
Try the following:
sudo chown www-data newlogo.png
sudo chgrp www-data newlogo.png
Hey guys thanks for all the help here. I actually figured it all out. I was trying to do a lot of it client side and not server side. My bad for not understanding it better before posting the question. Again, thanks for the time.
– Dean Karasinski
Oct 25 '12 at 0:37
add a comment |
Try the following:
sudo chown www-data newlogo.png
sudo chgrp www-data newlogo.png
Try the following:
sudo chown www-data newlogo.png
sudo chgrp www-data newlogo.png
answered Oct 24 '12 at 20:35
heiglandreasheiglandreas
1,07877
1,07877
Hey guys thanks for all the help here. I actually figured it all out. I was trying to do a lot of it client side and not server side. My bad for not understanding it better before posting the question. Again, thanks for the time.
– Dean Karasinski
Oct 25 '12 at 0:37
add a comment |
Hey guys thanks for all the help here. I actually figured it all out. I was trying to do a lot of it client side and not server side. My bad for not understanding it better before posting the question. Again, thanks for the time.
– Dean Karasinski
Oct 25 '12 at 0:37
Hey guys thanks for all the help here. I actually figured it all out. I was trying to do a lot of it client side and not server side. My bad for not understanding it better before posting the question. Again, thanks for the time.
– Dean Karasinski
Oct 25 '12 at 0:37
Hey guys thanks for all the help here. I actually figured it all out. I was trying to do a lot of it client side and not server side. My bad for not understanding it better before posting the question. Again, thanks for the time.
– Dean Karasinski
Oct 25 '12 at 0:37
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f491869%2fcannot-change-file-to-www-data-keep-getting-chown-www-data-invalid-argument%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
Did you try including it in quotes?
– agirish
Oct 23 '12 at 23:49
2
Need more info here: did you create the www-data user & group on the client, or the server? Are you running the chown command on the client or the server? What are the permissions on the folder the file is in on the server? And finally, how are you trying to upload the file to the server?
– Gordon Davisson
Oct 24 '12 at 3:59
What shell are you using?
– ott--
Oct 24 '12 at 21:06