log ftp session with PAM

log ftp session with PAM

Post by christoph » Sat, 11 May 2002 21:42:03



Does anyone know how I can configure PAM, in order to log in syslog all my
ftp session with the module pam_unix.so?
I tried with the pam_warn module but it doesn't make what i want...

thanks.

 
 
 

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. creative lab multi media with cd 4x model MK4062

3. Logging PAM session, how to ?

4. Solaris x86 & amd

5. logging ftp sessions

6. Linux partition from Win95

7. log ftp sessions on OpenBSD 3.1

8. Linux VBBS Hack - Please

9. ftp/session logging

10. logging ftp sessions

11. REQUEST: Logging FTP sessions

12. Logging telnet and ftp sessions

13. How to log all telnet/ftp/rlogin sessions???