Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permissions for directories either lack "executable" or SGID bit. #4387

Closed
cyberduck opened this issue Apr 10, 2010 · 3 comments
Closed

permissions for directories either lack "executable" or SGID bit. #4387

cyberduck opened this issue Apr 10, 2010 · 3 comments
Assignees
Labels
bug duplicate sftp SFTP Protocol Implementation

Comments

@cyberduck
Copy link
Collaborator

JensP created the issue

Hi,

first of all: Thank you for this great tool. However, there is one major annoyance that keeps me from actually using it in a productive environment.

When creating new directories using SCP or SFTP mode, the created directories do take the SGID bit into account but set directories without executyble bit, resulting in access permission problems when uploading files into those directories.

Example:

drwxrws--- 2 user group 4.0K 2010-04-10 21:37 folder
~/ $ cd folder
~/folder $ mkdir example
~/folder $ ls -l 
$ drwxrws--- 2 user group 4.0K 2010-04-10 21:38 example

now I create a subfolder "cyber" with cyberduck and "ls" again.

drw-rwS--- 2 user group 4.0K 2010-04-10 21:38 cyber
drwxrws--- 2 user group 4.0K 2010-04-10 21:38 example

As you can see, the SGID bit is there, but the directory is created without "x" bit for either group or user. Setting the permissions in the settings, however, results in the SGID bit being ignored:

~/folder $ ls -l
drw-rwS--- 2 user group 4.0K 2010-04-10 21:38 cyber
drwxrwx--- 2 user group 4096 2010-04-10 22:27 cybex
drwxrws--- 2 user group 4.0K 2010-04-10 21:38 example

This leads to serious access permission problems in shared environments where group settings matter.

How is the creation of new directories handled to explain this behaviour? Using command line ssh access and the "mkdir" command results in correct permissions for the tested users.

I would greatly appreciate any help.

Cheers

JensP

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Creating directories over SFTP will use the permissions set in Preferences → Transfer → Permissions → for Folders. Please double check your setting there (even if you have choosen to use the permissions from the local file when uploading, the other disabled setting still applies for making new folders over SFTP).

@cyberduck
Copy link
Collaborator Author

ba324fb commented

Hello,
I have a similar issue (4.3.2 version june 2013)
when I create a directory from the menu bar it does not give me the default rights I set for directory in the general permissions.

I want people from the same group to be able to modify or delete a directory : 770. but after inspection I have 700.
but it works well when I create a file from the menu.
for the preferences to work I need to create the folder on the desktop and drag drop to the destination and I have the 770 permission I want.
Maybe I'm being too fussy ! For a product that is probably the best transfer program I have come across for years.
if you have more info on this I'll be happy to read it.
Regards.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Duplicate for #3790. Changing permissions resets extended access rights flags.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug duplicate sftp SFTP Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants