Skip to content

Changing permissions resets extended access rights flags #3790

Closed

Description

@cyberduck

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!

Activity

  1. cyberduck commented on Nov 27, 2010

    @cyberduck
    ContributorAuthor

    @dkocher commented

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

  2. cyberduck commented on Nov 27, 2010

    @cyberduck
    ContributorAuthor

    @dkocher commented

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

  3. cyberduck commented on Dec 19, 2010

    @cyberduck
    ContributorAuthor

    @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).
    
  4. cyberduck commented on Aug 18, 2013

    @cyberduck
    ContributorAuthor

    @dkocher commented

    #4387 closed as duplicate.

  5. cyberduck commented on Sep 8, 2013

    @cyberduck
    ContributorAuthor

    @dkocher commented

    In d5f48ff.

  6. cyberduck commented on Sep 15, 2013

    @cyberduck
    ContributorAuthor

    @dkocher commented

    setuid and setgid In fb2e93b.

  7. cyberduck commented on Sep 15, 2013

    @cyberduck
    ContributorAuthor

    @dkocher commented

    New test for SFTP in 87028f4.

  8. cyberduck commented on Sep 15, 2013

    @cyberduck
    ContributorAuthor

    @dkocher commented

    Fix for FTP and test in f6a538c.

  9. locked as resolved and limited conversation to collaborators on Nov 26, 2021
  10. added theissue type on Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

sftpSFTP Protocol Implementation

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions