Bug 2455 - ftpwho gives wrong output
Summary: ftpwho gives wrong output
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: wu-ftpd
Version: 6.0
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jay Turner
QA Contact:
URL:
Whiteboard:
: 3042 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-05-01 00:28 UTC by Bert de Bruijn
Modified: 2015-01-07 23:37 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 1999-06-08 14:36:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Bert de Bruijn 1999-05-01 00:28:42 UTC
[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)

Comment 1 Jay Turner 1999-05-05 14:42:59 UTC
Verfied on 6.0 intel system.

Comment 2 Jeff Johnson 1999-05-26 21:08:59 UTC
*** 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
meaningless process.

------- Additional Comments From dkl  05/25/99 19:38 -------
I have verified this bug to be true in 6.0.

------- Additional Comments From bob.ac.be  05/25/99 23:17 -------
this is a duplicate of bug# 2455.

Comment 3 Jeff Johnson 1999-06-07 23:14:59 UTC
Fixed in wu-ftpd-2.5.0-1.

Comment 4 Derek Tattersall 1999-06-08 14:36:59 UTC
Tested all archs 4.2, 5.2, 6.0 8 JUN 1999

Comment 5 cadams 1999-06-11 19:11:59 UTC
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);


Note You need to log in before you can comment on or make changes to this bug.