Ok to answer my own question, it seems that chroot (doh!) was the problem, perhaps I can fix it by copying the files and folder structure to /var/empty (chroot dir). I turned off chroot but now it says it can not find the file:
==> /var/log/auth.log <== Aug 24 12:43:28 mail ngircd[26539]: pam_userdb(ngircd:auth): user_lookup: could not open database `/etc/ngircd/ngircd-vusers.db': No such file or directory
I checked the permissions and that the user ngircd is running from (irc) can read the file:
$ whoami irc $ less /etc/ngircd/ngircd-vusers.db "/etc/ngircd/ngircd-vusers.db" may be a binary file. See it anyway?
As you can see it can read it but the file is a BerkleyDB file, perhaps Ngircd can not open it? Or am I missing something from PAM?
The same file setup is working correctly by VSftpd so it should not be PAM.
Regards,
Michiel On 08/26/2013 01:18 PM, Michiel van Es wrote:
On 08/24/2013 12:50 AM, Alexander Barton wrote:
On Mon, Aug 26, 2013 at 12:25:25AM +0200, Michiel van Es wrote:
==> /var/log/auth.log <== Aug 23 10:41:12 mail ngircd[8733]: PAM _pam_init_handlers: could not open /etc/pam.conf Aug 23 10:41:12 mail ngircd[8733]: PAM pam_start: failed to initialize handlers
[…]
Ok, so by default it will check /etc/pam.conf first and then /etc/pam.d/ngircd?
I think so, yes.
Do you have an example /etc/pam.d/ngircd config I can use or try? With my config posted above it does not seem to work..
And I don't think that it is a problem with your /etc/pam.d/ngircd file, but with your /etc/pam.conf -- which it "could not open" (auth.log). Why? I don't know. Do you have such a file? The permissions are ok? (ls -l /etc/pam.conf)
The file itself is world readable and existent but is empty since PAM now looks in /etc/pam.d
Can I add more verbosity to Ngircd?
The strange thing is, if this should work with pam-mysql which the PAM.txt suggests, then the file /etc/pam-mysql.conf would have even less permissions 6-0-0... It would be nice to find an example PAM config though how to set up Ngircd with pam (mysql, berkley db, pgsql or such).
Regards Alex
Regards,
Michiel _______________________________________________
ngIRCd Mailing List: ngIRCd-ML@arthur.barton.de http://arthur.barton.de/mailman/listinfo/ngircd-ml