FreeBSD pam.d proftpd problem

Chris Haulmark chris at sigd.net
Sun Nov 11 09:49:01 PST 2007


 
> On Nov 11, 2007 4:59 PM, Chris Haulmark <chris at sigd.net> wrote:
> > [snip]
> >
> > Why not enable logging for ProFTPD and read the logs
> > after the attempts again?
> >
> > Do the same for debugging too.
> >
> >[snip]
> >
> 
> Got this:
> 
> toor at tsunami]/usr/local/etc(107)# proftpd -4 -n -d10
>  - mod_tls/2.1.2: using OpenSSL 0.9.7e-p1 25 Oct 2004
>  - retrieved UID 65534 for user 'nobody'
>  - retrieved GID 65533 for group 'nogroup'
> tsunami.chroot.eu -
> tsunami.chroot.eu - Config for Chroot tsunami hosting:
> tsunami.chroot.eu - Limit
> tsunami.chroot.eu -  DenyAll
> tsunami.chroot.eu - DefaultServer
> tsunami.chroot.eu - Umask
> tsunami.chroot.eu - UserID
> tsunami.chroot.eu - UserName
> tsunami.chroot.eu - GroupID
> tsunami.chroot.eu - GroupName
> tsunami.chroot.eu - DefaultRoot
> tsunami.chroot.eu - AllowOverwrite
> tsunami.chroot.eu - TimeoutIdle
> tsunami.chroot.eu - TimeoutLinger
> tsunami.chroot.eu - TimeoutLogin
> tsunami.chroot.eu - TimeoutNoTransfer
> tsunami.chroot.eu - TimeoutStalled
> tsunami.chroot.eu - ROOT PRIVS at mod_delay.c:307
> tsunami.chroot.eu - RELINQUISH PRIVS at mod_delay.c:309
> tsunami.chroot.eu - retrieved group ID: 65534
> tsunami.chroot.eu - setting group ID: 65534
> tsunami.chroot.eu - SETUP PRIVS at main.c:2849
> tsunami.chroot.eu - ROOT PRIVS at main.c:1926
> tsunami.chroot.eu - RELINQUISH PRIVS at main.c:1933
> tsunami.chroot.eu - ROOT PRIVS at main.c:2257
> tsunami.chroot.eu - opening scoreboard '/var/run/proftpd.scoreboard'
> tsunami.chroot.eu - RELINQUISH PRIVS at main.c:2283
> tsunami.chroot.eu - ROOT PRIVS at inet.c:250
> tsunami.chroot.eu - RELINQUISH PRIVS at inet.c:267
> tsunami.chroot.eu - ROOT PRIVS at inet.c:343
> tsunami.chroot.eu - RELINQUISH PRIVS at inet.c:406
> tsunami.chroot.eu - getnameinfo error: ai_family not supported
> tsunami.chroot.eu - ProFTPD 1.3.1 (stable) (built Sun Nov 11 06:25:49
> EST 2007) standalone mode STARTUP
> tsunami.chroot.eu - ROOT PRIVS at pidfile.c:42
> tsunami.chroot.eu - RELINQUISH PRIVS at pidfile.c:44
> tsunami.chroot.eu - getnameinfo error: ai_family not supported
> tsunami.chroot.eu - ROOT PRIVS at main.c:1054
> tsunami.chroot.eu - RELINQUISH PRIVS at main.c:1058
> tsunami.chroot.eu - getnameinfo error: ai_family not supported
> tsunami.chroot.eu - no matching vhost found for (null)#21, using
> DefaultServer 'Chroot tsunami hosting'
> tsunami.chroot.eu - getnameinfo error: ai_family not supported
> tsunami.chroot.eu - getnameinfo error: ai_family not supported
> ^Ctsunami.chroot.eu - ProFTPD terminating (signal 2)
> tsunami.chroot.eu - ROOT PRIVS at main.c:1789
> tsunami.chroot.eu - ROOT PRIVS at mod_delay.c:1095
> tsunami.chroot.eu - RELINQUISH PRIVS at mod_delay.c:1097
> tsunami.chroot.eu - RELINQUISH PRIVS at main.c:1811
> tsunami.chroot.eu - ProFTPD 1.3.1 standalone mode SHUTDOWN
> tsunami.chroot.eu - ROOT PRIVS at main.c:1818
> tsunami.chroot.eu - deleting existing scoreboard
> '/var/run/proftpd.scoreboard'
> tsunami.chroot.eu - RELINQUISH PRIVS at main.c:1820
> [toor at tsunami]/usr/local/etc(108)#
> 
> Any suggestions?

I will point out some things out for you to read up on.

You did not enable PAM in proftpd.conf.  There is no vhosts
configured in the proftpd.conf either.  Did you intend to use
vhosts?

Also are you using inetd to serve the FTP connections?  If so,
why configure ProFTPD as your standalone server.

Did you read any documentations on how to enable pam for ProFTPD?
If so, which documentations?

I found that there's a bug that might have been fixed back in Jan
but it gave out similar errors.  It is located at:

http://bugs.proftpd.org/show_bug.cgi?id=2877

Chris

> 
> Best Regards, Riccardo Giuntoli.
> 
> --
> Name: Riccardo Giuntoli
> Email: taglio at gmail.com
> Homepage: http://www.luxoro.org/
> Location: Genova, Italy
> PGP Key: 0x67123739
> PGP Fingerprint: CE75 16B5 D855 842FAB54 FB5C DDC6 4640 6712 3739
> Key server: hkp://wwwkeys.eu.pgp.net


More information about the freebsd-questions mailing list