Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Proftp use PAM faild !!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fatcatserver
n00b
n00b


Joined: 11 Nov 2004
Posts: 1

PostPosted: Thu Nov 11, 2004 12:57 pm    Post subject: Proftp use PAM faild !! Reply with quote

Using virtual user for proftp with PAM

After USE="pam" emerge proftpd

Part of proftpd -l result is
Code:
  mod_auth_unix.c
  mod_auth_file.c
  mod_auth.c
  mod_auth_pam.c


Part of /etc/proftpd/proftpd.conf
Code:
RequireValidShell   off
AuthPAM             on
AuthPAMConfig       proftp


Virtual user account and password in account.txt
Code:

eeeeee
ere
abcdefg
123


The db file generate by db4.1_load
command is
Code:
db4.1_load -T -f account.txt -t hash account.db


The PAM config file in /etc/pam.d/proftp
Code:
auth       required    /lib/security/pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
account    required     /lib/security/pam_userdb.so db=/etc/proftpd/account
session    required     /lib/security/pam_pwdb.so


At server side
Code:
./proftpd -n -d 0


Then connect to proftp server. At server side the output debug info is
Code:
 - warning: AuthPAMAuthoritative is deprecated
fatcat - ProFTPD 1.2.10 (stable) (built Sun Nov 7 19:54:39 Local time zone must be set--see zic manual page 2004) standalone mode STARTUP
fatcat (attack[10.0.0.2]) - FTP session opened.
fatcat (attack[10.0.0.2]) - no such user 'abcdefg'
fatcat (attack[10.0.0.2]) - USER abcdefg: no such user found from attack [10.0.0.2] to 10.0.0.1:21


That look like the PAM module doesn't find out the username form db file.
Back to top
View user's profile Send private message
mxc
Guru
Guru


Joined: 05 Mar 2003
Posts: 442
Location: South Africa

PostPosted: Mon Mar 28, 2005 3:32 pm    Post subject: Reply with quote

I am having the same type of problem cant get proftpd to authenticate with pam :(
_________________
http://www.CyberDesigns.co.za
http://www.Jumpingbean.co.za
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum