Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462204 - net-ftp/ftpbase: /etc/pam.d/ftp assumes the existence of pam_listfile.so which is not installed by sys-freebsd/freebsd-pam-modules
Summary: net-ftp/ftpbase: /etc/pam.d/ftp assumes the existence of pam_listfile.so whic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal minor (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-18 14:00 UTC by Dmitri Bogomolov
Modified: 2013-11-30 13:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitri Bogomolov 2013-03-18 14:00:07 UTC
There is a line in /etc/pam.d/ftp:

  auth     required  pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed

which causes a warning in log like this:

  proftpd: in openpam_dynamic(): /lib/security/pam_listfile.so: No such file or directory

/lib/security/pam_listfile.so comes from sys-libs/pam on Linux. There is a  /lib/security/pam_ftpusers.so on FreeBSD which comes from sys-freebsd/freebsd-pam-modules with other syntax. This line probably should be:

  auth     required  pam_ftpusers.so no_warn disallow

It works for me, but in that case I get another warnings:

  proftpd: in openpam_dispatch(): pam_ftpusers.so: no pam_sm_authenticate()
  proftpd: in openpam_check_error_code(): pam_sm_authenticate(): unexpected return value 4

Reproducible: Always
Comment 1 Naohiro Aota gentoo-dev 2013-11-30 13:36:38 UTC
Using "account" instead of "auth" is correct. I've just added the fix into the tree.

+  30 Nov 2013; Naohiro Aota <naota@gentoo.org> ftpbase-0.01-r2.ebuild:
+  Use pam_ftpusers on FreeBSD. #462204