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

/share/data

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?
Thanks

Solution :

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

chown –help

chmod –help

https://www.computerhope.com/unix/uchown.htm

Leave a Reply

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