3

I was playing with my pi server and changing settings. When I tried to upload a file via filezilla I realized that its giving an error (553 Could not create file.). I can upload and create files in home/pi folder but I can't do anything in www folder.

Dharman
  • 30,962
  • 25
  • 85
  • 135
dan dadadadan
  • 143
  • 1
  • 2
  • 8
  • 1
    Welcome to Stack Overflow! Please move your question to [su] (delete here, re-post there). It's [off-topic here](//stackoverflow.com/help/on-topic). – Martin Prikryl Nov 24 '17 at 15:35

3 Answers3

9

Problem Solved

sudo chown -R pi:pi /var/www/

This command worked for me.

dan dadadadan
  • 143
  • 1
  • 2
  • 8
2

I think on Filezilla you are using FTP? I was getting blocked 550 premission denied. Try SFTP, it worked for me..

dmigo
  • 2,849
  • 4
  • 41
  • 62
slim
  • 21
  • 1
0

You do not have any rights for example in the /var/www folder.

Upload the files to /home/pi and connect with ssh. Login as user "pi" (and change to user "root" with "sudo su").

Then you can move your file. "(sudo) mv /home/pi/file.xy /move/it/to/this/place/"

You can also use "sudo" with the user "pi" instead of log in with user "root".