Linux server application learning 1-FTP service

xiaoxiao2021-03-06  14

Several related references: PrOFTPD Quick Guide ProftPD FAQProftPD Learning Notes (Tropic recommended)

PrOFTPD Restart: Installing Proftpd, setup /etc/proftpd.conf and finds that the change is invalid, and the MS needs to restart Proftpd. Go to 88 asked I learned that the closure command is "/etc/init.d/proftpd stop", and then start OK. There is also an ftpshut command, which can stop the FTP connection in the premise that does not stop the proFTPD process. In fact, FTPSHUT is generating / etc / shutmsg, you only need to delete this file FTP and re-serve, or directly "ftpshut -r". Addition: ftpshut [-l min] [-d min] TIME [WARNING-Message ...] -l Min: In a few minutes before the FTP shutdown service, try to establish a new FTP connection is not accepted -D MIN: In a few minutes before the FTP closes the service, the established FTP connection will be aborted: After how much, the server will turn off the FTP service, and there are two Number after the Number minutes after the Number minutes. MM: HH server Will be closed, here we use this command to stop the FTP service, but the actual proFTPD process has not stopped, so the general debug FTP will use this command. Example: FTPSHUT -L 20 -D 10 30 "FTP Server Will Shutdown At Time" After 30 minutes, the FTP service will be closed, and no new FTP connection can be accepted before this, which has been established. Former 10 minutes to force the line and display "FTP Server Will Shutdown At Time" Anonymous Login in the client: View Proftp Profile /usR/local/etc/proftpd.conf (Debian under /etc/proftpd.conf), Modifications (here / home / ftp can be any current root directory that wants to log in with anonymous user, but make sure that the directory allows the directory to access the FTP user access), and if the part of the user command specified by the user is an FTP user, it is necessary to configure it. Add the following command indicating: "RequirevalidShell Off" implements the user under a directory by the command default: default ~ ftpusers (main directory) can also limit the user's labeling only one subdirectory after logging: DEFAULTROOT ~ / ANOFTP FTPUSERS can also be limited to other directories instead of their own home directory: Default / TMP FTPUsers can also qualify certain users of a user group to be restricted, while others do not limit: default ~ ftpusers ,! Empolyee This instruction indicates that only users in the ftpusers group are not restricted by users in the FTPUsers group. Version information is not displayed when you log in: You can use one of the following two methods: ServerIdent on "My FTP Server" or ServerIdent Off If you have a virtual host, you can set this setting for each site. How to implement disk quotas: When you first compile --with-modut, you want to include mod_quota. Then use in the configuration file: Quotas ONQUOTACALC OONDEFAULTQUOTA 8000QUOTablocksize 1024QUOTablockName KB can implement disk limit.

转载请注明原文地址:https://www.9cbs.com/read-46317.html

New Post(0)