PureftpdIt is a fast, high-quality, and fully functional ftp server. The most important thing is that it supports setting the Default Client encoding. Pureftpd is very powerful and useful, but I believe you all have some questions about PureFTPd. I have collected a lot of questions here to see if there are any answers you want!
1. How to Prevent partitions from being filled up?
Q: Can I disable upload when the disk is full? (Cyberic)
A: use the "-k" (-- maxdiskusagepct) flag. If you add-k 95, when the partition is full of 95%, you cannot upload A new one.
2. Unable to log on (Unix verification)
Q: I use simple Unix verification. no PAM, no puredb, no MySQL, no LDAP. the anonymous FTP service runs normally, but I cannot log on with another user. the system always says "Verification Failed ".
A: To log on, the shell allocated to the user must be listed in the/etc/shells file. even if you use a fake shell (such as/etc,/bin/true), there should be a precise path.
In addition, check whether the last line in the/etc/shells file ends with a carriage return.
3. Network File System
Q: I have a strange problem on Linux or FreeBSD. the uploaded file runs normally, but the downloaded file only generates 0-byte files. on the server, these files are shared by NFS/Novell/Appletalk/Coda/Intermezzo/SMB.
A: By default, pure-ftpd uses A zero-copy Network to increase capacity and reduce CPU load. However, the zero-copy network cannot run on all file systems, especially network file systems.
To provide file services on a network FS or TMPFS virtual disk, you must disable zero copy.
To disable zero copy, with options,./configure -- without-sendfile, re-compile pure-ftpd.
4. Solaris and chroot.
Q: When I connect to my Solaris server through ftp, run the "ls" command to obtain the following answer:
"425 Can't create the data socket: Bad file number ."
A: On Solaris, to run chroot on pure-ftpd, the dev folder of the following files must be included in the new root directory.
- crw-rw-rw- 1 root other 11, 42 Dec 10 15:02 tcp
-
- crw-rw-rw- 1 root other 105, 1 Dec 10 15:02 ticotsord
-
- crw-rw-rw- 1 root other 11, 41 Dec 10 15:03 udp
-
- crw-rw-rw- 1 root other 13, 12 Dec 10 15:03 zero
(Kenth Stailey Report)
5. Upgrade
Q: Can someone explain how to upgrade PureFTPd (from the source code) without changing all the settings? (Simon H)
A:
1) obtain the source code and unpack the package.
2) add your preferred options to run./congigure
3) make
4) rm-f/usr/local/sbin/pure-ftpd
5) make install-strip
6) If you run pure-ftpd from inetd, tcpserver, and xinetd, you do not have to do anything. The upgrade is successful.
7) if you run in standalone mode, stop the server:
- kill $(cat /var/run/pure-ftpd.pid)
Then restart:
- /usr/local/sbin/pure-ftpd &
6. OpenBSD, ISOS, EkkoBSD, and MacOS X
Q: I want to run Pure-FTPd on OpenBSD. The daemon is running but cannot be connected: no response is received on port 21.
A: OpenBSD deliberately rejects listening for IPv4 and IPv6 connections in A separate socet. when Pure-FTPd runs on OpenBSD, only IPv6 connections are monitored by default. on the recently released ISOS, EkkoBSD, and MavOS X, the situation is similar.
To listen to the IPv4 address, add the '-4' option to run pure-ftpd:
- /usr/local/sbin/pure-ftpd -4&
By reading the above, we are sure you can find what you need. Even if you don't find anything, you should look at the knowledge of Pureftpd! I hope this article will help you!