pydio-core icon indicating copy to clipboard operation
pydio-core copied to clipboard

Improved permission detection when using ftp backend

Open aseques opened this issue 11 years ago • 7 comments

Added the same improvements when using the ftp backend that allow better permission checking when on POSIX systems. Basically adapted the patch from here: http://pyd.io/f/topic/solved-linux-acl-folder-not-writeable/

If applicable, copyright goes to the projec..

aseques avatar Jan 23 '14 10:01 aseques

@aseques, the real path here is referring to something like ftp:// ... can we really check POSIX on a remote server via FTP?

cdujeu avatar Apr 02 '14 09:04 cdujeu

The issue in my case is that a user (user1) connects to an ftp and has read/write access to a subfolder owned by another user (user2)

user1 ---------user2 ----------------- files

Unless the check is done via posix_access, the is_writable() will return false when checking permissions on user2 folder.

aseques avatar Apr 02 '14 10:04 aseques

@c12simple what do you think?

cdujeu avatar Sep 21 '16 07:09 cdujeu

Hello @aseques Could you please tell me how to reproduce this issue? FTP service: the OS of FTP, ftp server program , permission setting. .....

c12simple avatar Sep 29 '16 14:09 c12simple

Hello @aseques Please contact me when you have time. THank you very much.

c12simple avatar Sep 30 '16 09:09 c12simple

Sorry I can't remember the details, it's been a lot of time (I even changed jobs), but it basically it's in the issue. I was using proftpd with the database backend (mysql).

aseques avatar Oct 03 '16 20:10 aseques

Hello @aseques Thank you, that's enough for me to reproduce by using proftpd.

c12simple avatar Oct 07 '16 07:10 c12simple