pure-ftpwho doesn't work in pure-ftpd
Hi,
I have installed pure-ftpd v1.0.29 on RHEL 5.5 with default configurations. I created a linux account and a pure-ftp account. I am able to connect to FTP service from local machine or remote machines. The problem is when I run pure-ftpwho it shows a blank output as below while I have an active session from a remote machine. # pure-ftpwho +------+---------+-------+------+-------------------------------------------+ | PID | Login |For/Spd| What | File/IP | +------+---------+-------+------+-------------------------------------------+ However it generates output and shows ftp session only if I connect to ftp service from my local machine. I was wondering if anyone could tell me what is wrong. Thanks. |
Hi,
Quote:
Regarding pure-ftpwho behavior, it's indeed strange as it should show connections regardless of the connecting IP. Since you're using RHEL, the only thing that comes in mind is SELinux. Try to disable it temporarily and see if pure-ftpwho works as expected. Regards |
Yes, I am using virtual users. (I couldn't get it working without virtual users anyway)
SELinux is disabled on my machine. I reinstalled pure-ftpd and result is the same :( .Here is my configuration : # cat pure-ftpd.conf | egrep -v "^#|^$" ChrootEveryone yes BrokenClientsCompatibility no MaxClientsNumber 50 Daemonize yes MaxClientsPerIP 8 VerboseLog no DisplayDotFiles yes AnonymousOnly no NoAnonymous no SyslogFacility ftp DontResolve yes MaxIdleTime 15 PureDB /etc/pure-ftpd/pureftpd.pdb PAMAuthentication yes LimitRecursion 10000 8 AnonymousCanCreateDirs no MaxLoad 4 AntiWarez yes Umask 133:022 MinUID 500 UseFtpUsers no AllowUserFXP no AllowAnonymousFXP no ProhibitDotFilesWrite no ProhibitDotFilesRead no AutoRename no AnonymousCantUpload yes AltLog clf:/var/log/pureftpd.log MaxDiskUsage 99 CustomerProof yes # |
Hi,
Hmm your config looks good. Maybe you can stop using pam authentication and see if it's starts logging both local and remote connections. I don't see any other reason why it shouldn't show remote connections. Regards |
Setting "PAMAuthentication no" and restarting the service didn't help either
|
Try pure-ftpwho -n or pure-ftpwho -H, so it doesn't resolve the remore host IP and see if it helps.
If not, better contact the pure-ftpd maintainer as you maybe hit a bug. Regards |
Quote:
Although I think this is a strange behavior for pure-ftpd to generate a null output quickly when it is unable to resolve the IP to name. Thank you so much for your help. |
All times are GMT -5. The time now is 03:42 PM. |