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

Cyberduck "forgets" permission bits with external editor #12001

Closed
cyberduck opened this issue Dec 14, 2005 · 6 comments
Closed

Cyberduck "forgets" permission bits with external editor #12001

cyberduck opened this issue Dec 14, 2005 · 6 comments
Assignees
Milestone

Comments

@cyberduck
Copy link
Collaborator

bpalmer created the issue

On some servers, Cyberduck resets the permission bits on a file to 644 (maybe specific to the server?) when you double-click a file, edit it in your external text editor, then save it causing Cyberduck to upload the new version. So you lose any permissions you've set on the file, I notice this especially when I'm editing a shell script via Cyberduck. It doesn't appear to happen on all servers, though. This could have been pretty severe if I hadn't noticed the issue, so I'm wondering if this should have a higher severity?

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Are you able to set the permissions on these servers using the info panel? If not the server does probably not support the CHMOD command (check the transcript) and sets the default permissions instead.

@cyberduck
Copy link
Collaborator Author

bpalmer commented

Yes, I am able to set the permissions using the info panel, basically I have to click the file, hit Cmd-I, and fix the permissions again every time I make a change to it. Sorry, I thought I mentioned that but I didn't.

@cyberduck
Copy link
Collaborator Author

bpalmer commented

Here is the relevant part of a log transcript. You can see that right after I hit save in my text editor and Cyberduck uploads the new version, it CHMODs the file from the previous 755 to 644. I'm using Textmate as my editor, but I just tried it out in SubEthaEdit and the same thing happens, so I don't think it's the editor. Thanks.

CWD /public_html/cgi-bin/dada
250 OK. Current directory is /public_html/cgi-bin/dada
PASV
227 Entering Passive Mode (72,29,74,11,129,244)
LIST -a
150 Accepted data connection
drwxr-xr-x    2 32042    magleby      4096 Dec 14 18:03 .
drwxr-xr-x    3 32042    magleby      4096 Dec 14 17:36 ..
-rwxr-xr-x    1 32042    magleby    206124 Dec 14 18:03 mail.cgi
226-Options: -a -l 
226 3 matches total
NOOP
200 Zzz...
TYPE I
200 TYPE is now 8-bit binary
PASV
227 Entering Passive Mode (72,29,74,11,144,158)
RETR /public_html/cgi-bin/dada/mail.cgi
150-Accepted data connection
150 201.3 kbytes to download
226-File successfully transferred
226 3.056 seconds (measured here), 65.88 Kbytes per second
NOOP
200 Zzz...
NOOP
200 Zzz...
PASV
227 Entering Passive Mode (72,29,74,11,122,181)
STOR /public_html/cgi-bin/dada/mail.cgi
150 Accepted data connection
226-File successfully transferred
226 4.701 seconds (measured here), 42.82 Kbytes per second
SITE CHMOD 644 /public_html/cgi-bin/dada/mail.cgi
200 Permissions changed on /public_html/cgi-bin/dada/mail.cgi
SITE UTIME 20051215030200 /public_html/cgi-bin/dada/mail.cgi
500 SITE UTIME is an unknown extension
NOOP
200 Zzz...
TYPE A
200 TYPE is now ASCII
CWD /public_html/cgi-bin/dada
250 OK. Current directory is /public_html/cgi-bin/dada
PASV
227 Entering Passive Mode (72,29,74,11,158,127)
LIST -a
150 Accepted data connection
drwxr-xr-x    2 32042    magleby      4096 Dec 14 22:02 .
drwxr-xr-x    3 32042    magleby      4096 Dec 14 17:36 ..
-rw-r--r--    1 32042    magleby    206125 Dec 14 22:02 mail.cgi
226-Options: -a -l 
226 3 matches total

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Have you check both "change permissions on upload and download" in the transfer preferences?

@cyberduck
Copy link
Collaborator Author

bpalmer commented

I am an idiot. I'm still not clear on why this only happens to me on certain servers, but I can sort it out now that I know about those options. Sorry for wasting your time.

@cyberduck
Copy link
Collaborator Author

Bob76 commented

There are certainly a number of biological differences between men and women. ,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants