VSFTPD handling of symbolically linked directories

Issues related to applications and software problems
Post Reply
dwhite@caltech.edu
Posts: 1
Joined: 2020/09/15 22:43:29

VSFTPD handling of symbolically linked directories

Post by dwhite@caltech.edu » 2020/09/15 22:56:36

We have discovered a difference between the way VSFTPD navigates symbolic links and the way Linux handles symbolic links. We would like to see a configuration option that, when set, enables VSFTPD to emulate Linux in this area. In the examples below the same server and directories were used. The prompt looks different due to a chroot'ing of the VSFTPD user at the /xfer/ftpanon level. Notice that the Linux user descends the directory structure and returns to where he started whereas the VSFTPD user does not.

LINUX NAVIGATION OF SYMBOLICALLY LINKED DIRECTORIES
[root@prpdtn01 IRSA]# pwd
/xfer/ftpanon/IRSA
[root@prpdtn01 IRSA]# ls -l
total 4
lrwxrwxrwx 1 ftpanon ftpanon 19 Sep 15 14:54 123456789 -> ../OUTBOX/123456789
-rwxr--r-- 1 ftpanon ftpanon 16 Sep 15 13:51 testfile01
[root@prpdtn01 IRSA]# cd 123456789
[root@prpdtn01 123456789]# pwd
/xfer/ftpanon/IRSA/123456789
[root@prpdtn01 123456789]# cd ..
[root@prpdtn01 IRSA]# pwd
/xfer/ftpanon/IRSA
[root@prpdtn01 IRSA]

VSFTPD NAVIGATION OF SYMBOLICALLY LINKED DIRECTORIES
ftp> pwd
257 "/IRSA"
ftp> ls -l
227 Entering Passive Mode (192,84,86,211,82,157).
150 Here comes the directory listing.
lrwxrwxrwx 1 ftp ftp 19 Sep 15 14:54 123456789 -> ../OUTBOX/123456789
-rwxr--r-- 1 ftp ftp 16 Sep 15 13:51 testfile01
226 Directory send OK.
ftp> cd 123456789
250 Directory successfully changed.
ftp> pwd
257 "/OUTBOX/123456789"
ftp> cd ..
250 Directory successfully changed.
ftp> pwd
257 "/OUTBOX"
ftp>

Post Reply

Return to “CentOS 7 - Software Support”