Home > database >  remote open("/var/www/portal.site.com/html/images/1.jpeg"): Permission denied
remote open("/var/www/portal.site.com/html/images/1.jpeg"): Permission denied

Time:07-30

sftp> put 1.jpeg      

Uploading 1.jpeg to /var/www/portal.site.com/html/images/1.jpeg remote open("/var/www/portal.site.com/html/images/1.jpeg"): Permission denied

CodePudding user response:

To be sure : execute following command in your terminal ls -l You will have details for your folder with permissions, groups, users, and rights : read, write, execute... and then you could change it if it's necessary.

Try it please : go in /var and from this folder from a terminal write it :
sudo chown YOURUSERNAME /www
and sudo chmod -R 775 /www

CodePudding user response:

the authenticated user does not have permission on the directory where you are trying to upload the file.

There are directory ownership permissions such as user:group and read, write and execute permissions.

Quentin Genet's answer should help you.

chown user:group chmod -R 775 or 777 (RECOMMEND FOR TEST ONLY)

Practical example: My username: mario and my ftp_homolog directory.

chown mario ftp_homolog/ chmod -R 775 ftp_homolog/

  • Related