Mailing List Archive

[Bug 3222] get -r doesn't work because directories are created without write permissions
https://bugzilla.mindrot.org/show_bug.cgi?id=3222

Darren Tucker <dtucker@dtucker.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |dtucker@dtucker.net

--- Comment #1 from Darren Tucker <dtucker@dtucker.net> ---
This is because the source directories are not writable either, and
sftp is maintaining those permissions:
sftp> ls -l
dr--r----- 1 ECOKITS VSI$GUEST 4096 Oct 26 2016 ALPOPENSOURCE
dr--r----- 1 ECOKITS VSI$GUEST 9216 Apr 19 2016 I64OPENSOURCE
-r--r--r-- 1 OPENKITS VSI$GUEST 706 Jan 29 2019 README.TXT

sftp would need to open the directory with user write, then set the
final permission when it's done with the directory.

--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3222] get -r doesn't work because directories are created without write permissions [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3222

--- Comment #2 from Darren Tucker <dtucker@dtucker.net> ---
oh, and the directory doesn't have the "x" bit, which is also going to
cause some problems on most unix variants.

--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3222] get -r doesn't work because directories are created without write permissions [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3222

--- Comment #3 from Darren Tucker <dtucker@dtucker.net> ---
Created attachment 3450
--> https://bugzilla.mindrot.org/attachment.cgi?id=3450&action=edit
Ensure directory is writable and searchable for the duration of a
recursive transfer

Please try this patch.

--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3222] get -r doesn't work because directories are created without write permissions [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3222

Darren Tucker <dtucker@dtucker.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
Blocks| |3217


Referenced Bugs:

https://bugzilla.mindrot.org/show_bug.cgi?id=3217
[Bug 3217] Tracking bug for 8.5 release
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3222] get -r doesn't work because directories are created without write permissions [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3222

Darren Tucker <dtucker@dtucker.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #3450|0 |1
is obsolete| |

--- Comment #4 from Darren Tucker <dtucker@dtucker.net> ---
Created attachment 3451
--> https://bugzilla.mindrot.org/attachment.cgi?id=3451&action=edit
Ensure directory is writable and searchable for the duration of a
recursive transfer

fix incorrect error message in previous.

--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3222] get -r doesn't work because directories are created without write permissions [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3222

--- Comment #5 from ncdehnel@gmail.com ---
The patch seems to work. It seems to have downloaded all the files.
Thank you.

--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs