Re[3]: pam_userdb

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

 



A sample file named /usr/etc/userpass: user1 123 user2 124 user3 125 #db_load -T -t hash passwd.db < userpass verified by: #db_dump -p passwd.db add a line to pam file: auth sufficient pam_userdb.so db=/usr/etc/passwd

----- Original Message -----
From :
Subject : Re:
Hello vincent.

You wrote 4 aug 2003 0:43:59:

vmmhn> db_load, just edit a text file with username/password pair seperated by space.
vmmhn> Then, excute:
vmmhn> db_load -T -t hash original message:
vmmhn> How to create userbase for pam_userdb?  Which utility can i use?

vmmhn> = auth.log =========
vmmhn> Aug  3 16:12:48 vgt pam_userdb[1032]: Verify user `r1' with password `1'
vmmhn> Aug  3 16:12:48 vgt pam_userdb[1032]: user_lookup: could not open
vmmhn>                                       database `/etc/ppp-users'

That doesn't working.  My actions was:
echo -ne "r1 1\nr2 2\n" | db3_load -T -t hash /etc/ppp-users

= auth.log =========
Aug  4 10:55:48 vgt mgetty[501]: data dev=ttyCP0, pid=501, caller='none',
                                 conn='38400/V34b 33600/V42b', name='',
                                 cmd='/usr/sbin/pppd', user='/AutoPPP/'
Aug  4 10:55:51 vgt pam_userdb[501]: Verify user `r1' with password `1'
Aug  4 10:55:51 vgt pam_userdb[501]: user_lookup: could not open
                                     database `/etc/ppp-users'


-- the same error.

vgt:~# db3_dump /etc/ppp-users
VERSION=3
format=bytevalue
type=hash
h_nelem=2
HEADER=END
 726567312031
 726567322032
 72312031
 72322032
DATA=""


--
With respect,
 Ilja                          mailto:ilja@xxxxxxxxx


_______________________________________________

Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux