bugzilla-daemon at mindrot.org
2004-Sep-21  18:23 UTC
[Bug 934] Traverse-only directories (e.g. chmod 110) break the cd command in sftp
http://bugzilla.mindrot.org/show_bug.cgi?id=934
           Summary: Traverse-only directories (e.g. chmod 110) break the cd
                    command in sftp
           Product: Portable OpenSSH
           Version: 3.6.1p2
          Platform: PPC
        OS/Version: AIX
            Status: NEW
          Severity: minor
          Priority: P2
         Component: sftp-server
        AssignedTo: openssh-bugs at mindrot.org
        ReportedBy: mgjk at idirect.com
This appears on OpenSSH under AIX, but I think it may also impact Linux:
/home/kallies/topdir/subdir> chmod 770 targetdir
/home/kallies/topdir/subdir> cd ..
/home/kallies/topdir> chmod 110 subdir
/home/kallies/topdir> cd ..
/home/kallies> chmod 110 topdir
/home/kallies> ls topdir
ls: topdir: The file access permissions do not allow the specified action.
/home/kallies> ls topdir/subdir
ls: topdir/subdir: The file access permissions do not allow the specified
action.
/home/kallies> echo "this is my data" >
topdir/subdir/targetdir/datafile.txt
/home/kallies> ls topdir/subdir/targetdir
datafile.txt
/home/kallies> cat topdir/subdir/targetdir/datafile.txt
this is my data
Under FTP, the directories behave as you would expect:
230 User kallies logged in.
ftp> cd topdir
250 CWD command successful.
ftp> ls
200 PORT command successful.
550 No files found.
ftp> cd subdir
250 CWD command successful.
ftp> ls
200 PORT command successful.
550 No files found.
ftp> cd targetdir
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 Opening data connection for ..
datafile.txt
myfile.txt
226 Transfer complete.
ftp>
However under SFTP, it does not:
sftp> ls topdi*
topdir/
sftp> ls topdir
Couldn't get handle: Permission denied
sftp> ls topdir/subdir
Couldn't get handle: Permission denied
sftp> ls topdir/subdir/targetdir
topdir/subdir/targetdir/.
topdir/subdir/targetdir/..
topdir/subdir/targetdir/datafile.txt
sftp> cd topdir/subdir/targetdir
Couldn't canonicalise: No error
sftp> get topdir/subdir/targetdir/datafile.txt myfile.txt
datafile.txt                                  100%   16     8.4KB/s   00:00
sftp>
This breaks GUI utilities (e.g. WinSCP), and isn't quite like FTP behaviour.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Oct-12  21:06 UTC
[Bug 934] Traverse-only directories (e.g. chmod 110) break the cd command in sftp
http://bugzilla.mindrot.org/show_bug.cgi?id=934 ------- Additional Comments From mgjk at idirect.com 2004-10-13 07:06 ------- Bugzilla newbie here, smack me if I'm breaking etiquitte. Reassigning to the owner of the selected component (sftp-server) ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
Apparently Analagous Threads
- [Bug 934] Traverse-only directories (e.g. chmod 110) break the cd command in sftp
- [Bug 934] Traverse-only directories (e.g. chmod 110) break the cd command in sftp
- [Bug 934] Traverse-only directories (e.g. chmod 110) break the cd command in sftp
- [Bug 934] Traverse-only directories (e.g. chmod 110) break the cd command in sftp
- [OT] posting bounties for rpms compatible with centos?