ISPConfig 3.0.5.4p8 and PureFTPd: virtualchroot not working

Discussion in 'Installation/Configuration' started by juanjico, Jul 20, 2015.

  1. juanjico

    juanjico New Member

    Hello!

    I've installed an Ubuntu server using the guide https://www.howtoforge.com/perfect-server-ubuntu-14.10-with-nginx-bind-dovecot-and-ispconfig-3

    All is working perfect, except I've noticed that when I login to the FTP, I can go back from the root of FTP. I already enabled VIRTUALCHROOT in /etc/default/pure-ftpd-common:

    Code:
    # Configuration for pure-ftpd
    # (this file is sourced by /bin/sh, edit accordingly)
    
    # STANDALONE_OR_INETD
    # valid values are "standalone" and "inetd".
    # Any change here overrides the setting in debconf.
    STANDALONE_OR_INETD=standalone
    
    # VIRTUALCHROOT:
    # whether to use binary with virtualchroot support
    # valid values are "true" or "false"
    # Any change here overrides the setting in debconf.
    VIRTUALCHROOT=true
    # UPLOADSCRIPT: if this is set and the daemon is run in standalone mode,
    # pure-uploadscript will also be run to spawn the program given below
    # for handling uploads. see /usr/share/doc/pure-ftpd/README.gz or
    # pure-uploadscript(8)
    
    # example: UPLOADSCRIPT=/usr/local/sbin/uploadhandler.pl
    UPLOADSCRIPT=
    
    # if set, pure-uploadscript will spawn  running as the
    # given uid and gid
    UPLOADUID=
    UPLOADGID=
    
    and when I restart the pure-ftpd daemon, it show:
    Code:
    juanjo@machine:~$ sudo service pure-ftpd-mysql restart
    Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -u 1000 -E -8 UTF-8 -O clf:/var/log/pure-ftpd/transfer.log -B
    juanjo@machine:~$
    
    It's starting the pure-ftpd-mysql-virtualchroot binary, so it's enabled. But I can go down in the FTP tree.

    I'm using pure-ftpd version 1.0.36-1.1

    Any idea ???

    Thanks.
     
    Last edited: Jul 20, 2015

Share This Page