Hello everyone,

Steps to install pure-ftpd and jail users:

Note-1) On typing ‘ftp localhost’, if you get “Install command ‘ftp’ to provide command ‘ftp’? [N/y]” error message, don’t worry that perfectly normal.  Simply type y. This is “ftp client binary”, whereas vsftpd is “ftp server”.

Step-1) To install pure-ftpd, on the terminal type:
        su -c ‘yum -y install ftp pure-ftpd’

Step-2) To jail users to their home directories, on the terminal type:
        su -c ‘[nano/vi/emacs] /etc/pure-ftpd/pure-ftpd.conf’
        Search for text “ChrootEveryone” and change it’s value to “yes”.

Step-3) To allow local users to login, on the terminal type:
        su -c ‘[nano/vi/emacs] /etc/pure-ftpd/pure-ftpd.conf’
        Search for text “UnixAuthentication” and change it’s value to “yes”

Step-4) Restart service:
        su -c ‘service pure-ftpd restart’

Step-5) If you skip this, you will get “500 OOPS: cannot change directory:/home/user_name” error when you login to ftp server.
        su -c ‘setsebool -P ftp_home_dir on’

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

Step-6) 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 (Fedora/openSuse)
Tagged on:                     

One thought on “Install pure-ftpd & restrict users to their home directories (Fedora/openSuse)

  • July 27, 2016 at 4:23 pm
    Permalink

    Hello my name is Tammy and I just wanted to drop you a quick message here instead of calling you. I discovered your Install pure-ftpd & restrict users to their home directories (Fedora/openSuse) | Open Source Tips and tricks website and noticed you could have a lot more visitors. I have found that the key to running a successful website is making sure the visitors you are getting are interested in your subject matter. There is a company that you can get keyword targeted traffic from and they let you try their service for free for 7 days. I managed to get over 300 targeted visitors to day to my website. http://interkaz.biz/n

    Reply

Leave a Reply

Your email address will not be published.