[root@sun /root]# ftpwho
Service class local:
1 ? S 0:03 init
- 1 users ( 10 maximum)
Apparently ftpwho fails to grep for the right process.
As far as I can tell, ftpwho does select the right class for
ftp-users, but always gives process info for init, never for
an ftpd process.
(I observed this bug on sparc and i386)
Verfied on 6.0 intel system.
*** Bug 3042 has been marked as a duplicate of this bug. ***
The 'ftpwho' program uses 'ps' to list the process and then
show the 'ftpd' process. The 'ftpwho' program doesn't
understand the new output format of 'ps', so it shows
------- Additional Comments From email@example.com 05/25/99 19:38 -------
I have verified this bug to be true in 6.0.
------- Additional Comments From firstname.lastname@example.org 05/25/99 23:17 -------
this is a duplicate of bug# 2455.
Fixed in wu-ftpd-2.5.0-1.
Tested all archs 4.2, 5.2, 6.0 8 JUN 1999
There is still a bug in ftpcount/ftpwho: they try to open the PID file
O_RDWR (read/write), even though they only read from it. This means
that only root can use ftpcount/ftpwho (which is not a security
problem - they just gather and present available information). This
one line change will fix that:
--- wu-ftpd-2.5.0-clean/src/ftpcount.c Fri Jun 11 14:04:56 1999
+++ wu-ftpd-2.5.0/src/ftpcount.c Fri Jun 11 14:08:59 1999
@@ -229 +229 @@
- pidfd = open(pidfile, O_RDWR, 0644);
+ pidfd = open(pidfile, O_RDONLY, 0644);