How to determine if you can write to a file with SFTP because of your group?

感情迁移 提交于 2019-12-08 00:31:30

Just try to open the file for writing. You do not have to write anything to it. If the opening fails with SSH_FX_PERMISSION_DENIED (SSH_FXP_STATUS response), you do not have write permissions.

Use the SSH_FXF_WRITE bit in the pflag field of the SSH_FXP_OPEN request.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!