Cannot change file to www-data, keep getting “chown: www-data: Invalid argument”












0















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.










share|improve this question

























  • 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
















0















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.










share|improve this question

























  • 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














0












0








0








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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



















  • 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










1 Answer
1






active

oldest

votes


















0














Try the following:



sudo chown www-data newlogo.png
sudo chgrp www-data newlogo.png





share|improve this answer
























  • 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











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
});


}
});














draft saved

draft discarded


















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









0














Try the following:



sudo chown www-data newlogo.png
sudo chgrp www-data newlogo.png





share|improve this answer
























  • 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
















0














Try the following:



sudo chown www-data newlogo.png
sudo chgrp www-data newlogo.png





share|improve this answer
























  • 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














0












0








0







Try the following:



sudo chown www-data newlogo.png
sudo chgrp www-data newlogo.png





share|improve this answer













Try the following:



sudo chown www-data newlogo.png
sudo chgrp www-data newlogo.png






share|improve this answer












share|improve this answer



share|improve this answer










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



















  • 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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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

Paul Cézanne

UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

Angular material date-picker (MatDatepicker) auto completes the date on focus out