Discussion:
[Proftpd-user] proftpd-1.3.6 symlink issue
Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
2017-04-18 16:21:02 UTC
Permalink
I have compiled and installed proftpd-1.3.6 on my RHEL6 server. I noticed that the symlinks are broken and it is not showing the correct path. The name of the symlink is being added to the path of the symlink in the anonymous chroot.
Please see below:

Incorrect path:
lrwxrwxrwx 1 user1 group1 18 Sep 26 2012 000_readme.txt -> /000_readme.txt/pub/000_readme.txt

Correct path:
lrwxrwxrwx 1 user1 group1 18 Sep 26 2012 000_readme.txt -> pub/000_readme.txt

I am not sure why it is adding the name of the file to the beginning of the path. This looks like a bug? Has anyone encountered this issue?
Please let me know if there is a workaround for this? Thank you.

UR.
Matus UHLAR - fantomas
2017-04-19 09:46:10 UTC
Permalink
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
I have compiled and installed proftpd-1.3.6 on my RHEL6 server. I noticed
that the symlinks are broken and it is not showing the correct path. The
name of the symlink is being added to the path of the symlink in the
anonymous chroot.
lrwxrwxrwx 1 user1 group1 18 Sep 26 2012 000_readme.txt -> /000_readme.txt/pub/000_readme.txt
lrwxrwxrwx 1 user1 group1 18 Sep 26 2012 000_readme.txt -> pub/000_readme.txt
who creates those symlinks?
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
I am not sure why it is adding the name of the file to the beginning of the path. This looks like a bug? Has anyone encountered this issue?
Please let me know if there is a workaround for this? Thank you.
symlinks are interpreted relative to chroot by the OS.
(or, by proftpd when using mod_vroot).
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Due to unexpected conditions Windows 2000 will be released
in first quarter of year 1901
Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
2017-04-19 12:47:57 UTC
Permalink
who creates those symlinks?
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
These symlinks are created by me manually.
This was working fine in version proftpd-1.3.5rc1. We recently upgraded to version proftpd-1.3.6 and we now see a problem with the symlink.

I really appreciate any help to resolve this issue.

Thanks,
Uthra

-----Original Message-----
From: Matus UHLAR - fantomas [mailto:***@fantomas.sk]
Sent: Wednesday, April 19, 2017 5:46 AM
To: proftp-***@lists.sourceforge.net
Subject: Re: [Proftpd-user] proftpd-1.3.6 symlink issue
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
I have compiled and installed proftpd-1.3.6 on my RHEL6 server. I
noticed that the symlinks are broken and it is not showing the correct
path. The name of the symlink is being added to the path of the
symlink in the anonymous chroot.
lrwxrwxrwx 1 user1 group1 18 Sep 26 2012 000_readme.txt -> /000_readme.txt/pub/000_readme.txt
lrwxrwxrwx 1 user1 group1 18 Sep 26 2012 000_readme.txt -> pub/000_readme.txt
who creates those symlinks?
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
I am not sure why it is adding the name of the file to the beginning of the path. This looks like a bug? Has anyone encountered this issue?
Please let me know if there is a workaround for this? Thank you.
symlinks are interpreted relative to chroot by the OS.
(or, by proftpd when using mod_vroot).


--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Due to unexpected conditions Windows 2000 will be released in first quarter of year 1901

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________
ProFTPD Users List <proftpd-***@proftpd.org>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
Matus UHLAR - fantomas
2017-04-21 15:39:42 UTC
Permalink
Post by Matus UHLAR - fantomas
who creates those symlinks?
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
These symlinks are created by me manually.
manually? on the filesystem or though proftpd?
so why don't you create them properly?
Post by Matus UHLAR - fantomas
This was working fine in version proftpd-1.3.5rc1. We recently upgraded to version proftpd-1.3.6 and we now see a problem with the symlink.
I have explained how symlinks work. You have said you create symlinks
manually, you just have to create them using proper way

(switching to mod_vroot is NOT a solution to this problem)
Post by Matus UHLAR - fantomas
-----Original Message-----
Sent: Wednesday, April 19, 2017 5:46 AM
Subject: Re: [Proftpd-user] proftpd-1.3.6 symlink issue
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
I have compiled and installed proftpd-1.3.6 on my RHEL6 server. I
noticed that the symlinks are broken and it is not showing the correct
path. The name of the symlink is being added to the path of the
symlink in the anonymous chroot.
lrwxrwxrwx 1 user1 group1 18 Sep 26 2012 000_readme.txt -> /000_readme.txt/pub/000_readme.txt
lrwxrwxrwx 1 user1 group1 18 Sep 26 2012 000_readme.txt -> pub/000_readme.txt
who creates those symlinks?
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
I am not sure why it is adding the name of the file to the beginning of the path. This looks like a bug? Has anyone encountered this issue?
Please let me know if there is a workaround for this? Thank you.
symlinks are interpreted relative to chroot by the OS.
(or, by proftpd when using mod_vroot).
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"They say when you play that M$ CD backward you can hear satanic messages."
"That's nothing. If you play it forward it will install Windows."
Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
2017-04-24 18:51:36 UTC
Permalink
so why don't you create them properly?
Post by Matus UHLAR - fantomas
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
I have created the symlink correctly and it is fine if I switch back to proftpd-1.3.5rc1 but I am having this problem only with proftpd-1.3.6?
**proftpd displaying correct symlink target with proftpd-1.3.5rc1**
# pwd
/tower/data/archive/public
#ls -lt
drwxrwxr-x 10 1031 504 13 Apr 24 13:49 pub
- lrwxrwxrwx 1 509 504 18 Sep 26 2012 000_readme.txt -> pub/000_readme.txt
-lrwxrwxrwx 1 1031 504 24 Sep 25 2012 filelist.gz -> pub/catalogs/filelist.gz

**proftpd displaying Incorrect symlink target with proftpd-1.3.6**
#ls -lt
drwxrwxr-x 10 1031 504 13 Apr 24 13:49 pub
- lrwxrwxrwx 1 509 504 18 Sep 26 2012 000_readme.txt -> 000_readme.txt/pub/000_readme.txt
-lrwxrwxrwx 1 1031 504 24 Sep 25 2012 filelist.gz -> filelist.gz/pub/catalogs/filelist.gz

Please note that in the above examples "pub" and "catalogs" are subdirectory within the chroot (/tower/data/archive/public/).

Thank you.
Uthra





-----Original Message-----
From: Matus UHLAR - fantomas [mailto:***@fantomas.sk]
Sent: Friday, April 21, 2017 11:40 AM
To: proftp-***@lists.sourceforge.net
Subject: Re: [Proftpd-user] proftpd-1.3.6 symlink issue
Post by Matus UHLAR - fantomas
who creates those symlinks?
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
These symlinks are created by me manually.
manually? on the filesystem or though proftpd?
so why don't you create them properly?
Post by Matus UHLAR - fantomas
This was working fine in version proftpd-1.3.5rc1. We recently upgraded to version proftpd-1.3.6 and we now see a problem with the symlink.
I have explained how symlinks work. You have said you create symlinks manually, you just have to create them using proper way

(switching to mod_vroot is NOT a solution to this problem)
Post by Matus UHLAR - fantomas
-----Original Message-----
Sent: Wednesday, April 19, 2017 5:46 AM
Subject: Re: [Proftpd-user] proftpd-1.3.6 symlink issue
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
I have compiled and installed proftpd-1.3.6 on my RHEL6 server. I
noticed that the symlinks are broken and it is not showing the
correct path. The name of the symlink is being added to the path of
the symlink in the anonymous chroot.
lrwxrwxrwx 1 user1 group1 18 Sep 26 2012 000_readme.txt -> /000_readme.txt/pub/000_readme.txt
lrwxrwxrwx 1 user1 group1 18 Sep 26 2012 000_readme.txt -> pub/000_readme.txt
who creates those symlinks?
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
I am not sure why it is adding the name of the file to the beginning of the path. This looks like a bug? Has anyone encountered this issue?
Please let me know if there is a workaround for this? Thank you.
symlinks are interpreted relative to chroot by the OS.
(or, by proftpd when using mod_vroot).
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"They say when you play that M$ CD backward you can hear satanic messages."
"That's nothing. If you play it forward it will install Windows."

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________
ProFTPD Users List <proftpd-***@proftpd.org>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html

Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
2017-04-19 17:48:36 UTC
Permalink
I tried to configure my proftpd.conf file as shown in this example but I could not start the proftpd daemon:

For example:

<VirtualHost a.b.c.d>
VRootEngine on
VRootServerRoot /etc/ftpd/a.b.c.d/
VRootOptions allowSymlinks
DefaultRoot ~
...
</VirtualHost>

Thanks,
Uthra


-----Original Message-----
From: Matus UHLAR - fantomas [mailto:***@fantomas.sk]
Sent: Wednesday, April 19, 2017 5:46 AM
To: proftp-***@lists.sourceforge.net
Subject: Re: [Proftpd-user] proftpd-1.3.6 symlink issue
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
I have compiled and installed proftpd-1.3.6 on my RHEL6 server. I
noticed that the symlinks are broken and it is not showing the correct
path. The name of the symlink is being added to the path of the
symlink in the anonymous chroot.
lrwxrwxrwx 1 user1 group1 18 Sep 26 2012 000_readme.txt -> /000_readme.txt/pub/000_readme.txt
lrwxrwxrwx 1 user1 group1 18 Sep 26 2012 000_readme.txt -> pub/000_readme.txt
who creates those symlinks?
Post by Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]
I am not sure why it is adding the name of the file to the beginning of the path. This looks like a bug? Has anyone encountered this issue?
Please let me know if there is a workaround for this? Thank you.
symlinks are interpreted relative to chroot by the OS.
(or, by proftpd when using mod_vroot).


--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Due to unexpected conditions Windows 2000 will be released in first quarter of year 1901

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________
ProFTPD Users List <proftpd-***@proftpd.org>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
Loading...