|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: DB files and authentication of ftp users
From: halis osman (harezmi
yahoo.com)Date: Wed Nov 22 2000 - 09:33:26 CST
- Next message: monkeyiq
dingoblue.net.au: "Using passwd to change a users password."
- Previous message: Burak Bilen: "ssh and pam ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
_______________________________________________
Pam-list mailing list
Pam-list
redhat.com
https://listman.redhat.com/mailman/listinfo/pam-list
- Next message: monkeyiq
dingoblue.net.au: "Using passwd to change a users password."
- Previous message: Burak Bilen: "ssh and pam ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]