Subject: Re: Problem with PAM and ssh-login
To: Lars Udo <lars.udo@gmail.com>
From: Lars Udo <lars.udo@gmail.com>
List: current-users
Date: 03/21/2005 07:44:59
On Mon, 21 Mar 2005 07:37:08 +0000
Lars Udo <lars.udo@gmail.com> wrote:

> On Mon, 21 Mar 2005 07:20:52 +0000
> Lars Udo <lars.udo@gmail.com> wrote:
> 
> > On Sun, 20 Mar 2005 15:58:46 -0500
> > christos@zoulas.com (Christos Zoulas) wrote:
> > 
> > > On Mar 20, 10:38pm, lars.udo@gmail.com (Lars Udo) wrote:
> > > -- Subject: Re: Problem with PAM and ssh-login
> > > 
> > > | > Ok, you have an old version of /etc/pam.d/sshd. Remove the ",optional"
> > > | > from all the files you have in /etc/pam.d and your problem will be fixed.
> > > 
> > > Did you fix that?
> > 
> > i did fixed it only at sshd file, because i dont care to touch all the other 20 different
> > files in that dir. And i believe that fixing only sshd would have been helped, but no!
> > 
> > > 
> > > | Do you think that this has anything to do with my problem:
> > > | 
> > > | Mar 20 20:14:36 a84-230-215-174 login: Cannot update lastlogx Inappropriate file type or format
> > > | 
> > > | as i said, etcupdate doesent make any sense to me. I'm doing cvs update and then building latest current, if it would help any. And next time i'll try to be more accurate with etcupdate.
> > > | 
> > > | see ya tomorrow guys :)
> > > 
> > > It should not matter. Remove it and touch it, and it will get fixed.
> > 
> > I did  "echo "" > /var/log/lastlogx" and it didnt seemed to help, what makes
> > touch different from "" ?
> > 
> > > 
> > > christos
> > 
> > Lars
> > 
> > ps. Build is ready and going to install and do etcupdate! i hope we'll see again :)
> 
> following problems were occured:
> 
> /usr/sbin/etcupdate -s /usr/src/etc
> ....
> *** Populating /tmp/temproot from /stor/src/etc
> install: etcsubmit.cf: stat: No such file or directory
> 
> and while postinstall:
> 
> x11 fix:
>         Migrate ///usr/X11R6/lib/X11/fs to ///etc/X11/fs [NOT FIXED]
>         Migrate ///usr/X11R6/lib/X11/lbxproxy to ///etc/X11/lbxproxy [NOT FIXED]
>         Migrate ///usr/X11R6/lib/X11/proxymngr to ///etc/X11/proxymngr [NOT FIXED]
>         Migrate ///usr/X11R6/lib/X11/rstart to ///etc/X11/rstart [NOT FIXED]
>         Migrate ///usr/X11R6/lib/X11/twm to ///etc/X11/twm [NOT FIXED]
>         Migrate ///usr/X11R6/lib/X11/xdm to ///etc/X11/xdm [NOT FIXED]
>         Migrate ///usr/X11R6/lib/X11/xinit to ///etc/X11/xinit [NOT FIXED]
>         Migrate ///usr/X11R6/lib/X11/xserver to ///etc/X11/xserver [NOT FIXED]
>         Migrate ///usr/X11R6/lib/X11/xsm to ///etc/X11/xsm [NOT FIXED]
> 
> Please, help me! Everything works fine, except ssh login. I'm fine with that because i
> dont need to do remote logins so far. 
> 
> And for next, i'm going through every file in pam.d/ to remove those ',optional' and maybe
> i could make sed to do it for me :)
> 
> Lars

root@a84-230-215-174:/etc/pam.d$cat * | grep optional
   optional:   ignored unless the other modules return PAM_IGNORE.
#session        optional        pam_ssh.so

so, i suppose, that there is no ,optional in any file at pam.d/ and i cant locate that file
tha has that line which i pasted abov, but it should matter because it is commented out.

Lars