[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

DB files and authentication of ftp users



Hi all;

I want to:
	Add users(ftp for this time) to the system from ssl
apache+php.

I did:

I use php dbm module to create a username indexed .db
file with passwords in plain text into
/var/db/mydb.db. This .db file is to be scanned by
PAM. Using pam_userdb module.

here is the /etc/pam.d/ftp file:
##################################################
#%PAM-1.0
        auth       required     pam_listfile.so
item=user sense=deny file=/etc/ftpusers onerr=succeed
        auth       sufficient   pam_userdb.so icase
db=/var/db/passwd
        auth       required     pam_pwdb.so shadow
nullok try_first_pass
        auth       required     pam_shells.so
        account    required     pam_pwdb.so
        session    required     pam_pwdb.so           

#####################################################

And i have changed /etc/nsswitch.conf as

passwd  db files ....
... etc 

What I get:
when i do ftp 0 ; login fails. log says that:
###########
Nov 22 17:12:15 osix pam_userdb[3034]: user_lookup:
could not open database `/var/db/mydb'
Nov 22 17:12:15 osix PAM_pwdb[3034]: check pass; user
unknown
###########

I am new with this subject (today) and as of scanning
list archives (almost last 16 months) i coulnd find
anything.

so whats the problem? what must i do?


thanks 

Halis Osman ERKAN
pusulanet.com.tr

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []