SSH_FX_PERMISSION_DENIED in Sftp even the directory has 777 perms

-1

1

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

Sashimi

Posted 2018-11-02T11:50:30.923

Reputation: 1

Answers

-1

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

lejurassien

Posted 2018-11-02T11:50:30.923

Reputation: 28

Do you have any reference for your claim that a directory that belongs to root cannot be used by no one else? – Martin Prikryl – 2018-11-02T12:38:08.637

no actually I have no problem with that besides I use winscp that I love but I gave a direction but I misspoke it being French and translating everything with deepl.com HS: Thanks for your great work on winscp – lejurassien – 2018-11-02T12:45:19.720