[Bug 2404] New: scp skips file/directory on permissions error

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat May 23 05:44:17 AEST 2015


https://bugzilla.mindrot.org/show_bug.cgi?id=2404

            Bug ID: 2404
           Summary: scp skips file/directory on permissions error
           Product: Portable OpenSSH
           Version: 6.7p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5
         Component: scp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: kevin.brott at gmail.com

This looks to be a regression to bug 863.

This issue exists in:
 * AIX openssh 6.0.0.6200 (AIX 7.x)
 * HP-UX OpenSSH_6.2p2+sftpfilecontrol-v1.3-hpn13v12 (HP-UX 11.31)
 * RHEL OpenSSH_5.3p1 (RHEL 6.4)
 * Debian openssh 6.7p1-5 (Jessie)

REPLICATE:
on HOST1 and HOST2 as root:
  mkdir -p /var/tmp/test/lost+found
  chmod 777 /var/tmp/test
  chmod 775 /var/tmp/test/lost+found

On HOST1 as non-root user:
  cd /var/tmp/test
  for DIR in abc def mno pqr ; do 
    mkdir -p ${DIR} && touch ${DIR}/${RAMDOM}
  done
  scp -vpr /var/tmp/test  HOST2:/var/tmp/

RESULT:
  The directory processed immediately after lost+found will not copy
across at all, but everything else will.

Removing the -p option allows everything to copy, but drops file
group/permission bits per user groups/umask as expected.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list