Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: OpenSSH compile
Date: Wed, 6 Jun 2001 11:03:53 -0600	[thread overview]
Message-ID: <20010606110353.A6717@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <Pine.LNX.4.33.0106060833130.20429-100000@asimov.lib.uaa.alaska.edu>; from tibor@lib.uaa.alaska.edu on Wed, Jun 06, 2001 at 08:36:05AM -0800

On Wed, Jun 06, 2001 at 08:36:05AM -0800, Mike Tibor wrote:
> On Wed, 6 Jun 2001 bryan@ak.net wrote:
> 
> > Has someone here compiled Openssh 2.9p1 on redhat?  I did it the same
> > way I did on my Slackware x86, and it compiled and installed fine, it
> > just won't authenticate me (root or regular user).

You would be likely better of starting with a current openssh source
rpm from Red Hat distribution and editing it to "plug in" a version of
ssh you want.  That way you will not forget about such "small details"
like configuration and startup files.

> 
> Yep--you want to use PAM.  I think the trick may be to cat something like
> the following into /etc/pam.d/sshd:
> 
> (copied from my 164LX running RH7)
> #%PAM-1.0
> auth       required     /lib/security/pam_stack.so service=system-auth
> auth       required     /lib/security/pam_nologin.so
> account    required     /lib/security/pam_stack.so service=system-auth
> password   required     /lib/security/pam_stack.so service=system-auth
> session    required     /lib/security/pam_stack.so service=system-auth
> session    required     /lib/security/pam_limits.so
> session    optional     /lib/security/pam_console.so
> 
> I don't know how well that would work on 6.x.

It will work just fine (although I did not try version 2.9 of ssh yet).
OTOH if you would want that on one of 5.x systems then something like
that should be handy (make it "shadow" or not, depending on your other
settings).

#%PAM-1.0
auth       required     /lib/security/pam_pwdb.so shadow nodelay
auth       required     /lib/security/pam_nologin.so
account    required     /lib/security/pam_pwdb.so
password   required     /lib/security/pam_cracklib.so
password   required     /lib/security/pam_pwdb.so shadow nullok use_authtok
session    required     /lib/security/pam_pwdb.so
session    required     /lib/security/pam_limits.so

Without PAM support you are for a hard time.

  Michal




  reply	other threads:[~2001-06-06 17:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-06  9:38 OpenSSH compile bryan
2001-06-06 16:36 ` Mike Tibor
2001-06-06 17:03   ` Michal Jaegermann [this message]
2001-06-06 19:52     ` bryan
2001-06-06 21:26       ` Michal Jaegermann
2001-06-07 10:33         ` bryan
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox