I'm using ssh2 a PHP extension to create a new folder on my server, however if I try and set the permissions of that folder above the default of 0755 it creates the folder with that default setting.
It seems like there is some setting preventing me creating a folder with higher permissions e.g 0777.
And when I come to delete the folder SSH2 wont remove the directory unless I set the permissions of the folder by directly logging into that server, which I don't want to do.
It will remove files with 0755 permissions fine but not directories.