LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   pure-ftpwho doesn't work in pure-ftpd (https://www.linuxquestions.org/questions/linux-server-73/pure-ftpwho-doesnt-work-in-pure-ftpd-939678/)

vahab 04-13-2012 01:51 PM

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.

bathory 04-13-2012 03:58 PM

Hi,

Quote:

I created a linux account and a pure-ftp account.
What you mean by that? Unless you want to use virtual users there is no need to create a "pure-ftp account".

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

vahab 04-14-2012 02:23 AM

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
#

bathory 04-14-2012 04:13 AM

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

vahab 04-14-2012 05:36 AM

Setting "PAMAuthentication no" and restarting the service didn't help either

bathory 04-14-2012 08:10 AM

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

vahab 04-14-2012 02:25 PM

Quote:

Originally Posted by bathory (Post 4652488)
Try pure-ftpwho -n or pure-ftpwho -H, so it doesn't resolve the remore host IP and see if it helps.

Yes ! Both -n and -H solve the issue :)

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.