[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nss-mysql-users] pam_mysql and nss_mysql
From: |
Robert Hopson |
Subject: |
Re: [Nss-mysql-users] pam_mysql and nss_mysql |
Date: |
Thu, 30 Dec 2004 08:30:55 -0800 |
User-agent: |
Mutt/1.3.28i |
Hi Mario,
Do you have an /etc/pam.d/ directory? In that directory you can
create/edit pam.conf-style config files for specific services - ftp, ssh, etc.
If the directory doesn't already exist, I believe creating it will make
pam ignore /etc/pam.conf and look in /etc/pam.d for each service
instead.
-Robert
On Thu, Dec 30, 2004 at 03:20:51PM +0100, Mario Ohnewald wrote:
> Hello List,
> this might be a bit OT, but mayb you could give me a hint here...
>
>
> I set up nss-mysql and i can use su or id users without problems, but when i
> try to use ssh, ftp or whatever is pam based, get this:
>
> Dec 30 15:14:26 host sshd[2706]: Illegal user linus from 123.123.172.63
> Dec 30 15:14:27 host sshd[2706]: Failed none for illegal user linus from
> 123.123.172.63 port 32958 ssh2
> Dec 30 15:14:30 host sshd[2709]: (pam_unix) check pass; user unknown
> Dec 30 15:14:30 host sshd[2709]: (pam_unix) authentication failure; logname=
> uid=0 euid=0 tty=ssh ruser= rhost=xxx-12356.l7.c1.dsl.pol.co.uk
> Dec 30 15:14:32 host sshd[2706]: error: PAM: User not known to the
> underlying authentication module for illegal user linus from
> xxx-12356.l7.c1.dsl.pol.co.uk
>
>
> So i guess something it wrong with pam here, isnt it?
> I only edited /etc/pam.d/common-auth and /etc/pam.d/common-account.
> Since i have a debian unstable box.
>
> common-auth:
> auth required pam_unix.so nullok_secure
> auth optional pam_mysql.so user=root passwd=secret host=127.0.0.1
> db=nss_mysql table=user usercolumn=user_name passwdcolumn=password
>
>
> common-account:
> account required pam_unix.so
> account required pam_mysql.so user=root passwd=secret host=127.0.0.1
> db=nss_mysql table=user usercolumn=user_name passwdcolumn=password
>
>
>
> What else do i need to do?
> Where could i get more info/logs?
>
> Thanks, Mario
>
> --
> +++ Sparen Sie mit GMX DSL +++ http://www.gmx.net/de/go/dsl
> AKTION f?r Wechsler: DSL-Tarife ab 3,99 EUR/Monat + Startguthaben
>
>
> _______________________________________________
> Nss-mysql-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/nss-mysql-users