PAM and FTP = System error ? Help needed

PAM and FTP = System error ? Help needed

Post by Pawel Grodzick » Fri, 17 Aug 2001 01:22:27



I have recently installed PAM on my server. SSH with PAM authentication
works fine but my ProFTP shows the following message in my
/var/log/messages.

Aug 15 18:13:48 alpha proftpd[450]: alpha.action.net.pl
(dhcp-02.action.net.pl[192.168.1.2]) - FTP session opened.
Aug 15 18:13:48 alpha proftpd[450]: alpha.action.net.pl
(dhcp-02.action.net.pl[192.168.1.2]) - PAM(pawel): System error.
Aug 15 18:13:48 alpha proftpd[450]: alpha.action.net.pl
(dhcp-02.action.net.pl[192.168.1.2]) - USER pawel: Login successful.

What is wrong? I cannot locate the problem. Maybe you guys know what to do?

Thanx for your answers,

Paul

 
 
 

1. ftp chroot jail dir & pam 1.0 /etc/pam.d/ftp file

according to a published document in setting the ftp chroot jail dir,
i replaced the following lines in my /etc/pam.d/ftp file:

auth       required     /lib/security/pam_shells.so
account    required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_stack.so service=system-auth

with these lines

auth       required     /lib/security/pam_pwdb.so shadow nullok
account    required     /lib/security/pam_pwdb.so
session    required     /lib/security/pam_pwdb.so

is there an *current* and *explicit* PAM document that can help me
verify that what i am doing is correct?  i have individual users under
/var/ftp, setup like /var/ftp/username/ with ~/bin, ~/etc, ~/lib, and
a ~/dev/null for the shell.

Reference: my /etc/pam.d/ftp file:

#%PAM-1.0
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
# --------added 2002-01-28-------------------------------
auth       required     /lib/security/pam_pwdb.so shadow nullok
account    required     /lib/security/pam_pwdb.so
session    required     /lib/security/pam_pwdb.so
#--------------------------------------------------------
#auth       required     /lib/security/pam_shells.so
#account    required     /lib/security/pam_stack.so
service=system-auth
#session    required     /lib/security/pam_stack.so
service=system-auth

2. SCO Technical Articles released on 20000805

3. PPP + PAM error... need help!!!

4. help with linux printing

5. PAM (/etc/pam.conf).....Is It Needed?

6. Installing binutils - Error 33 exit status from the linker, ld

7. pam errors on newly-upgraded system

8. I don't know what to download, please help [RPMs-->v3.3.3 of X??]

9. Help: Need to foil intruder on my (AIX) system using ftp

10. Need Help ftp script error checking

11. Help needed with www/ftp out of memory errors

12. System Error - Need help

13. Need Help Fixing File System Error