[Bug 1653] New: Can not rename (move) files across bind mounts

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Sep 23 16:23:19 EST 2009


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

           Summary: Can not rename (move) files across bind mounts
           Product: Portable OpenSSH
           Version: 5.2p1
          Platform: ix86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sftp-server
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: reuben.m at gmail.com


With the way I have my sftp server set up, I have some directories that
I give accounts access to by placing a bind mount within the sftp root
directory. The problem is that the sftp server gives an error when
trying to move (via rename) files across the bind mounts.

For example, say that in my sftp root directory there are two
subdirectories: Files1 and Files2 where Files2 is a bind mount to
another area within the file system. (In my case, the bind mount
directories are all within the same partition as the sftp root)

When I try to move (again via rename) /Files1/a to /Files2/b (or
vice-versa) I get an error. If I try to do the same thing where there
are no bind mount directories involved, with the same uid/gid ownership
and permissions, it works just fine.

The error is very generic and doesn't really give any clue as to what
is causing the problem.

Please let me know if I can provide any more information, especially if
you have trouble reproducing the bug.

This is on a Gentoo system.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list