<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4562&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / HOWTO : enable pure-ftpd to follow symbolic links]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4562</link>
		<description><![CDATA[The most recent posts in HOWTO : enable pure-ftpd to follow symbolic links.]]></description>
		<lastBuildDate>Wed, 13 Oct 2021 20:52:39 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[HOWTO : enable pure-ftpd to follow symbolic links]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32075#p32075</link>
			<description><![CDATA[<p>One of pure-ftpd&#039;s key FTP server features is the ability to chroot individuals to their home folders, while still allowing the admin to use symbolic links to delegate disk space to these individuals.</p><p>From <a href="https://www.pureftpd.org/project/pure-ftpd/" rel="nofollow">https://www.pureftpd.org/project/pure-ftpd/</a> :</p><div class="quotebox"><blockquote><div><p>Symbolic links can be followed when users are chrooted, even when they are pointing out of the chroot jail. This unique feature makes shared content easy to set up.</p></div></blockquote></div><p>However, this feature requires that the binary has been compiled with the --with-virtualchroot switch set.&#160; Failure to do so will result in ftp clients experiencing errors like &quot;<em>550 Can&#039;t change directory to thefoldername: No such file or directory</em>&quot; when attempting to navigate symbolic link folders.</p><p>Unfortunately for me, who uses this feature in-house (each dev group has their own &quot;project&quot; share), office (the scanner uploads to a samba accessible folder), and production (customers each have their own &quot;site&quot; share), the Devuan/Debian package has not set this flag.</p><p>What follows are the steps I used to restore that feature capability to the Devuan pure-ftpd package.&#160; Rebuilding .deb packages is old-hat for the Debian folks, so read no further.&#160; But if you (like me) are escaping the RedHat/systemd fork-that-was-not-a-fork, and are much more acquainted with RPM than APT, maybe this helps.</p><div class="codebox"><pre class="vscroll"><code>echo &quot;start with an updated system&quot;
apt-get update
apt-get upgrade

echo &quot;you will need the devscripts tools&quot;
apt-get install devscripts

echo &quot;work within a folder apt can access&quot;
cd /tmp/

echo &quot;acquire the pure-ftp source and build dependencies&quot;
apt-get source pure-ftpd
apt-get build-dep pure-ftpd

echo &quot;set the virtualchroot flag&quot;
cd pure-ftpd-1.0.47/
vi debian/rules
-- optflags=--with-everything --with-largefile --with-pam --with-privsep --with-tls --with-rfc2640
++ optflags=--with-everything --with-largefile --with-pam --with-privsep --with-tls --with-rfc2640 --with-virtualchroot

echo &quot;supply a changelog comment and bump the revision number&quot;
dch -n

echo &quot;rebuild and install the package(s)&quot;
debuild -us -uc
cd ..
apt-get install ./pure-ftpd_1.0.47-3.1_amd64.deb ./pure-ftpd-common_1.0.47-3.1_all.deb

echo &quot;done&quot;
cd</code></pre></div><p>Hope I have that right ... feedback is welcome.&#160; There was a bit of trial and error failure getting there as this was my first ever .deb package rebuild.</p><p>--K</p>]]></description>
			<author><![CDATA[dummy@example.com (kaiyel)]]></author>
			<pubDate>Wed, 13 Oct 2021 20:52:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32075#p32075</guid>
		</item>
	</channel>
</rss>
