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

Changing permissions resets extended access rights flags #3790

Closed
cyberduck opened this issue Oct 7, 2009 · 8 comments
Closed

Changing permissions resets extended access rights flags #3790

cyberduck opened this issue Oct 7, 2009 · 8 comments
Assignees
Labels
bug fixed sftp SFTP Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

07eb6ed created the issue

I have a remote folder like so:

drwxr-s--- 2 me www-data 4096 Oct  7 15:31 htdocs

Then I want to set it to be group-writeable in Cyberduck. So I login (SFTP) I bring up the Info-dialogue for the folder and click the appropriate checkbox to make it so. Now the folder looks like this:

drwxrwx--- 2 me www-data 4096 Oct  7 15:31 htdocs

The setgid-bit has been reset. Surely, this can't be correct?

cheers!

@cyberduck
Copy link
Collaborator Author

@dkocher commented

The same also applies to changing UNIX permissions when connected to FTP.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

We should also honour both setuid and setgid and sticky bits.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

           4000    (the set-user-ID-on-execution bit) Executable files with this bit set will run with effective
                   uid set to the uid of the file owner.  Directories with the set-user-id bit set will force all
                   files and sub-directories created in them to be owned by the directory owner and not by the
                   uid of the creating process, if the underlying file system supports this feature: see chmod(2)
                   and the suiddir option to mount(8).
           2000    (the set-group-ID-on-execution bit) Executable files with this bit set will run with effective
                   gid set to the gid of the file owner.
           1000    (the sticky bit) See chmod(2) and sticky(8).

@cyberduck
Copy link
Collaborator Author

@dkocher commented

#4387 closed as duplicate.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In d5f48ff.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

setuid and setgid In fb2e93b.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

New test for SFTP in 87028f4.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Fix for FTP and test in f6a538c.

@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 fixed sftp SFTP Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants