I'm trying to have full access to my CentOS8 VPS (ie accessing root directory /
) through a mounted cURLFTPFS directory on my local Archlinux system. However no config seems to allow me to mount anything other than the user's home directory (/home/admin
).
I've tried all combinations of:
DefaultRoot / admin
in /etc/proftpd.conf
DefaultChdir /
in /etc/proftpd.conf
curlftpfs vps.example.com mountpoint
curlftpfs vps.example.com/ mountpoint
curlftpfs vps.example.com// mountpoint
curlftpfs vps.example.com:/ mountpoint
curlftpfs vps.example.com:// mountpoint
Preemptive responses:
admin
.netrc
systemctl reload proftpd
Any advice would be highly welcomed.
I have found the problem and it's as dumb as can reasonably be expected.
By default, ProFTPD locks all users to home directories except for the adm
group. This overrides all other access controls.
All I had to do was change the line DefaultRoot ~ !adm
(which his hidden amongst lines of comments in /etc/proftpd.conf
) to DefaultRoot ~ !adm,!admin
.