Bug 23721 - /etc/ftpusers is missing postgres and *probably* other system users
Summary: /etc/ftpusers is missing postgres and *probably* other system users
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: wu-ftpd   
(Show other bugs)
Version: 7.1
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: David Lawrence
Keywords: Security
Depends On:
TreeView+ depends on / blocked
Reported: 2001-01-10 19:43 UTC by Arenas Belon, Carlo Marcelo
Modified: 2007-04-18 16:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-01-10 19:43:13 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Arenas Belon, Carlo Marcelo 2001-01-10 19:43:09 UTC
The current PAM configuration for wu-ftpd restricts getting an ftp account
for users included on /etc/ftpusers as explained on :

auth required /lib/security/pam_listfile.so item=user sense=deny
file=/etc/ftpusers onerr=succeed
auth required /lib/security/pam_stack.so service=system-auth
auth required /lib/security/pam_shells.so

so if anyone with a shell on /etc/shells (like postgres) can ftp if it is
not explicitally denied for /etc/ftpusers (granted they have set a valid
password for that user)

i guess there could be other users that are allowed to ftp just because the
user is not on /etc/ftpusers (as any system user should be)

this could apply also to the mysql user or any other user that has recently
been added to RH

Comment 1 Bernhard Rosenkraenzer 2001-01-10 19:48:34 UTC
/etc/ftpaccess has

deny-uid %-99

which is already sufficient to block all system users.

Comment 2 Arenas Belon, Carlo Marcelo 2001-01-10 21:50:30 UTC
granted!! my fault as deny-uid is a better way than adding every single possible
login to /etc/ftpusers (i've even changed to sense=allow sometimes as it is far
easier to keep the "trusted" list this way)

it still aplies to RH <= 7.0, but i am not sure if an errata would be a good
idea though.

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