Bug 124306

Summary: ftpusers(5) man page says /etc/ftpusers is mandatory to enable ftp access, but it's not
Product: Documentation Reporter: Clément Lavoillotte <clement.lavoillotte>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Clément Lavoillotte 2008-06-05 18:30:01 UTC
According to ftpusers(5), "If the ftpusers file does not exist, all users
are denied access.".

This appears to be incorrect. Since I can't find this feature in
src/libexec/ftpd/ftpd.c, I suppose that the error is in the doc.

Fix: 

Remove the incorrect line from the doc.
How-To-Repeat: - man ftpusers
- moving /etc/ftpusers to /etc/ftpusers.bak doesn't prevent user login
Comment 1 Remko Lodder freebsd_committer freebsd_triage 2008-06-05 21:32:45 UTC
Clément Lavoillotte wrote:

You are wrong :-) We have two ftpd.c's.

# grep ftpusers /usr/src/contrib/lukemftpd/src/ftpd.c
                         /* check user in /etc/ftpusers, and setup class */
  * Check if user is allowed by /etc/ftpusers
                 reply(0, "Deny bad ftpusers(5) quickly: %sabled",


lukemftpd has the ftpusers(5)..

-- 

/"\   Best regards,                      | remko@FreeBSD.org
\ /   Remko Lodder                       | remko@EFnet
  X    http://www.evilcoder.org/          |
/ \   ASCII Ribbon Campaign              | Against HTML Mail and News
Comment 2 Remko Lodder freebsd_committer freebsd_triage 2008-06-05 21:33:12 UTC
State Changed
From-To: open->closed

Lukemftpd has the ftusers(5).
Comment 3 Clément Lavoillotte 2008-06-05 22:53:43 UTC
Hi,

Ok sorry :)
Perhaps it should be mentioned in this line that it only applies to =20
lukemftpd ? It may be obvious for most users, but it wasn't for me =20
since I didn't see "lukemftpd" anywhere in ftpusers(5) [nor in ftpd(8) =20=

or the handbook ftpd page].
I'm quite new to FreeBSD, so I may not have searched long enough, but =20=

I think adding this note to the man page would help people like me to =20=

figure out the difference (and not to pollute your PR db) :)

Thanks for your time.

Regards,
Cl=E9ment

Le 5 juin 08 =E0 22:32, Remko Lodder a =E9crit :

> Cl=E9ment Lavoillotte wrote:
>
> You are wrong :-) We have two ftpd.c's.
>
> # grep ftpusers /usr/src/contrib/lukemftpd/src/ftpd.c
>                        /* check user in /etc/ftpusers, and setup =20
> class */
> * Check if user is allowed by /etc/ftpusers
>                reply(0, "Deny bad ftpusers(5) quickly: %sabled",
>
>
> lukemftpd has the ftpusers(5)..
>
> --=20
>
> /"\   Best regards,                      | remko@FreeBSD.org
> \ /   Remko Lodder                       | remko@EFnet
> X    http://www.evilcoder.org/          |
> / \   ASCII Ribbon Campaign              | Against HTML Mail and News