SFTP/SSH Permission Denied

My YunoHost server

Hardware: VPS bought online
YunoHost version: YunoHost 3.7.1.3
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Hi everyone,

I access my server via SFTP. I am not able to upload files /var/www/App Folder directory because “Permission Denied”

I logging in my admin account btw.

Thanks in advance

By any chance, is it my_webapp ?

Otherwise I guess you need to tweak the permission using “chown admin /var/www/App” maybe but that depends on the exact structure and how much security you want with respect to other users that may access your server using SSH…

I want to change some app pages (e.g mastodon) via access SFTP.

sudo chmod -R 777 /var/www/AppFolder and restart Yunohost is the solution thank you!

Uuuuuuuuuuuh yeah alright it works but please consider that chmod 777 is a huge security risk as it allows any user (or program) on the machine to read/write anything in that folder … It’s only “kind of okay” if there’s absolutely no critical data in that folder.

Yeah i know but what other way do I fix this problem?

Maybe I make the changes and again set chmod 755?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.