Hello everyone,

Steps to install pure-ftpd and jail users:

Step-1) To install pure-ftpd, on the terminal type:
sudo apt-get -y install pure-ftpd

Step-2) To jail users to their home directories, on the terminal type:
        cd /etc/pure-ftpd/conf
        sudo touch ChrootEveryone (Note: Please type the name as it is. It’s case-sensitive.)
        sudo [nano/vi/emacs] ChrootEveryone
        type ‘yes’ in the file, save and exit.

Step-3) Restart service:
        sudo service pure-ftpd restart

    Congratulations! you have successfully jailed users to their respective home directories.

Step-4) To test, on the terminal windows type:
        ftp localhost
        #(when prompted, enter local computer login credentials)
        pwd
        ls -lh
        ls -lh ../../.. OR whatever you want to check.

 

I sincerely hope you liked it. Please leave your valuable comments and suggestions.

Install pure-ftpd & restrict users to their home directories (Ubuntu)
Tagged on:                 

Leave a Reply

Your email address will not be published.