SSH_FX_PERMISSION_DENIED in Sftp even the directory has 777 perms

Posted on

Problem :

I have an sftp server with a directory located into


This directory belongs to the root user so I’ve granted all permission to the dir:

chmod -R 777 /share

But if I try to create a new directory inside /share/data/mynewdir via SFTP client with a different user the SFTP server reply SSH_FX_PERMISSION_DENIED

Any suggestion?

Solution :

Maybe change the owner of the /newdir folder by doing a chown -R user:group

chown –help

chmod –help

Leave a Reply

Your email address will not be published. Required fields are marked *