1. Install proftpd Software
Download the next package from the official website.
Tar zxvf proftpd-1.3.1.tar.gz
Decompress the package
Cd proftpd-1.3.1 into folder
./Configure -- prefix =/etc/proftpd install the proftpd-1.3.1 under the/etc/proftpd folder
Make
Make install
Make clean
2. Create a user
Groupadd proftp create a proftp Group
Useradd-g proftp-d/var/ftp/yatan-s/sbin/nologin yatan my understanding is (create a yatan user and add it to the proftp group, create the yatan directory in the/var/ftp directory and specify its shell as nologin. This nologin does not allow yatan users to access the linux system.
Passwd yatan: Set the yatan password.
Okay, the user has set it :)
3. Configure the operations before the proftpd. conf file:
1. Because I use the Red Hat as4.0, I need to stop the built-in vsftpd.
Service vsftpd stop or directly rpm-e vsftpd
2. Set a proftpd startup Service
Edit a STARTUP script,
The cd proftpd-1.3.1 enters the extract folder of the proftpd-1.3.1
Cp contrib/dist/rpm/proftpd. init. d/etc/rc. d/init. d/proftpd copy proftpd. init. d to/etc/rc. d/init. d folder and rename it proftpd
Vi/etc/rc. d/init. d/proftpd edit the file, find a PATH line in the file, and change it to the directory where your installed proftpd is located.
PATH = "$ PATH:/etc/proftpd/sbin:/etc/proftpd/bin" I installed it in the/etc/proftpd file. Save and exit.
3. Set/etc/rc. d/init. d/proftpd to an executable file.
Chmod + x/etc/rc. d/init. d/proftpd
# Run the following command:
[Root @ localhost/] # chkconfig -- level 35 proftpd on
# Then, after the next system is started, proftpd will automatically start.
Chkonfig-add proftpd
In this way, you can use service proftpd start, service proftpd stop, and service proftpd restart to start, stop, and restart services respectively.
I almost forgot to change the configuration file.
Vi/etc/proftpd. conf
In the global configuration, change the group value to nogroup to nobody.
Now, the configuration is complete.
4. Modify/var/ftp directory permissions
Chmod-R 775/var/ftp
In this way, tc has all the permissions to write, delete, modify, and execute/var/ftp/skate files.
- Install and configure proftpd in CentOS
- ProFTPD mod_tls module ca ssl certificate verification vulnerability
- Experiences in establishing secure ProFTPD in Linux
- ProFTPD STAT Command Remote Denial of Service Attack Vulnerability
- ProFTPD character encoding SQL Injection Vulnerability