Skip to content

Unable to change directories when exposed via Mina SFTP #146

@ptirador

Description

@ptirador

Task Description

When using S3FS as a file system for Mina SFTP, it's not possible to change the directory (cd command):

sftp> ls -l
d---------   1 OWNER@   GROUP@          0 Jan 25 10:51 bar
d---------   1 OWNER@   GROUP@          0 Jan 25 10:42 foo
sftp> cd foo
Can't change directory: Can't check target

POSIX permissions are not being returned for these directories, which is causing an exception in the SFTP client when attempting to cd to the directory.

Tasks

The following tasks will need to be carried out:

  • When getting S3 Posix File Attributes in S3Utils, if the path is a directory, obtain the bucket ACL, then obtain its ACL grant permissions, convert them to Posix file permissions and return them with the response.

Useful Links

Help

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions