The officially official Devuan Forum!

You are not logged in.

#1 Documentation » HOWTO : enable pure-ftpd to follow symbolic links » 2021-10-13 20:52:39

kaiyel
Replies: 0

One of pure-ftpd'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.

From https://www.pureftpd.org/project/pure-ftpd/ :

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.

However, this feature requires that the binary has been compiled with the --with-virtualchroot switch set.  Failure to do so will result in ftp clients experiencing errors like "550 Can't change directory to thefoldername: No such file or directory" when attempting to navigate symbolic link folders.

Unfortunately for me, who uses this feature in-house (each dev group has their own "project" share), office (the scanner uploads to a samba accessible folder), and production (customers each have their own "site" share), the Devuan/Debian package has not set this flag.

What follows are the steps I used to restore that feature capability to the Devuan pure-ftpd package.  Rebuilding .deb packages is old-hat for the Debian folks, so read no further.  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.

echo "start with an updated system"
apt-get update
apt-get upgrade

echo "you will need the devscripts tools"
apt-get install devscripts

echo "work within a folder apt can access"
cd /tmp/

echo "acquire the pure-ftp source and build dependencies"
apt-get source pure-ftpd
apt-get build-dep pure-ftpd

echo "set the virtualchroot flag"
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 "supply a changelog comment and bump the revision number"
dch -n

echo "rebuild and install the package(s)"
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 "done"
cd

Hope I have that right ... feedback is welcome.  There was a bit of trial and error failure getting there as this was my first ever .deb package rebuild.

--K

#2 Documentation » HOWTO : LibreOffice open files on "Windows share" (samba) server » 2020-10-07 06:01:20

kaiyel
Replies: 1

I found I could not open spreadsheets from a "Windows share" connected samba server from this freshly installed Devuan Beowulf Mate desktop.  I've had this issue before using both openoffice and libreoffice on other distributions.  I was able to replicate the "fix" here and thought I would add this to the documentation for anyone having similar issues.

su - root
apt-get install gvfs-fuse
apt-get install libreoffice-gnome
sed -i 's/#X-GIO-NoFuse=true/X-GIO-NoFuse=true/' /usr/share/applications/libreoffice-*
reboot

Having experienced this with versions of Mint and PCLOS in the past, and now Devuan, I wonder "is it just me" or should a dependency be added to the libreoffice installer?

--K

Board footer

Forum Software