"sftp -r remotedir ." creates directories with wrong permissions
Bug #1030534 reported by
Dan Kegel
This bug report is a duplicate of:
Bug #1374386: sftp client stores files and directories with wrong permissions received by the server and lets download fail.
Edit
Remove
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The local directories created by
sftp -r remotedir .
are unreadable by anybody, so when it tries to create anything in them, it fails. Example:
$ sftp -r <email address hidden>:foo foo
<email address hidden>'s password:
Connected to host.com.
Fetching /foo/ to foo
Retrieving /foo
Retrieving /foo/www
mkdir foo/www: Permission denied
This is with Ubuntu 12.04, openssh-client 1:5.9p1-5ubuntu1
This is the second time I've ever used sftp.
To post a comment you must log in.
As far as I can see. it works well when I test on this Ubuntu 12.04 x86_64 machine. You may want to use -p or -P to get the permissions right. See man sftp…
roy