Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* OpenSSH compile
@ 2001-06-06  9:38 bryan
  2001-06-06 16:36 ` Mike Tibor
  0 siblings, 1 reply; 6+ messages in thread
From: bryan @ 2001-06-06  9:38 UTC (permalink / raw)
  To: axp-list

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).

After I did that, I tried adding the --with-pam switch to ./configure.
I know nothing about PAM, so I don't know if it requires any more than
just that switch (and the config file from contrib/).

Is it mandatory for ssh to use PAM on a redhat system?  If so, then
I'll need to know how to get that working.  If not, then my problem
lies elsewhere.  I'd rather not bother with PAM if I don't have to.

Can someone help me out here?
Thanks in advance for any wisdom.

--
Bryan Medsker
bryan@ak.net




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: OpenSSH compile
  2001-06-06  9:38 OpenSSH compile bryan
@ 2001-06-06 16:36 ` Mike Tibor
  2001-06-06 17:03   ` Michal Jaegermann
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Tibor @ 2001-06-06 16:36 UTC (permalink / raw)
  To: axp-list

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).
>
> After I did that, I tried adding the --with-pam switch to ./configure.
> I know nothing about PAM, so I don't know if it requires any more than
> just that switch (and the config file from contrib/).
>
> Is it mandatory for ssh to use PAM on a redhat system?  If so, then
> I'll need to know how to get that working.  If not, then my problem
> lies elsewhere.  I'd rather not bother with PAM if I don't have to.
>
> Can someone help me out here?
> Thanks in advance for any wisdom.

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.

Mike
-- 
Mike Tibor         Univ. of Alaska Anchorage    (907) 786-1001 voice
Network Technician     Consortium Library         (907) 786-6050 fax
tibor@lib.uaa.alaska.edu       http://www.lib.uaa.alaska.edu/~tibor/
http://www.lib.uaa.alaska.edu/~tibor/pgpkey  for PGP public key




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: OpenSSH compile
  2001-06-06 16:36 ` Mike Tibor
@ 2001-06-06 17:03   ` Michal Jaegermann
  2001-06-06 19:52     ` bryan
  0 siblings, 1 reply; 6+ messages in thread
From: Michal Jaegermann @ 2001-06-06 17:03 UTC (permalink / raw)
  To: axp-list

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




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: OpenSSH compile
  2001-06-06 17:03   ` Michal Jaegermann
@ 2001-06-06 19:52     ` bryan
  2001-06-06 21:26       ` Michal Jaegermann
  0 siblings, 1 reply; 6+ messages in thread
From: bryan @ 2001-06-06 19:52 UTC (permalink / raw)
  To: axp-list

Michal Jaegermann wrote in <20010606110353.A6717@ellpspace.math.ualberta.ca>:
> 
> > 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

This is the version supplied with openssh.  I replaced it with Mike's
new version, but it still won't authenticate me.  I don't suppose I
need to restart some pam-related process, hm?

I just checked in my /var/log/messages, and these three lines appear
at the time the connection is made to sshd:
Jun  6 11:25:08 valhalla sshd[8039]: PAM unable to dlopen(/lib/security/pam_stack.so)
Jun  6 11:25:08 valhalla sshd[8039]: PAM [dlerror: /lib/security/pam_stack.so: cannot open shared object file: No such file or directory]
Jun  6 11:25:08 valhalla sshd[8039]: PAM adding faulty module: /lib/security/pam_stack.so

This is a rh6.1 box, and I don't think I've changed any pam-related stuff.
Are these errors likely the problem, and how would I remedy them?

Thanks again.

--
Bryan Medsker
bryan@ak.net




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: OpenSSH compile
  2001-06-06 19:52     ` bryan
@ 2001-06-06 21:26       ` Michal Jaegermann
  2001-06-07 10:33         ` bryan
  0 siblings, 1 reply; 6+ messages in thread
From: Michal Jaegermann @ 2001-06-06 21:26 UTC (permalink / raw)
  To: axp-list

> > OTOH if you would want that on one of 5.x systems
.....
> > 
> > #%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
> 
> This is the version supplied with openssh.

This is a version which works with 5.x distributions.

> I replaced it with Mike's
> new version, but it still won't authenticate me.  I don't suppose I
> need to restart some pam-related process, hm?
> 
> I just checked in my /var/log/messages, and these three lines appear
> at the time the connection is made to sshd:
> Jun  6 11:25:08 valhalla sshd[8039]: PAM unable to dlopen(/lib/security/pam_stack.so)

Well, do you have /lib/security/pam_stack.so or not?  It is present at
least in pam-0.72-20.6.x which is the current update for PAM package and
6.x systems.

> This is a rh6.1 box, and I don't think I've changed any pam-related stuff.

You probably should.  There were updates posted for PAM.

  Michal




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: OpenSSH compile
  2001-06-06 21:26       ` Michal Jaegermann
@ 2001-06-07 10:33         ` bryan
  0 siblings, 0 replies; 6+ messages in thread
From: bryan @ 2001-06-07 10:33 UTC (permalink / raw)
  To: axp-list

Michal Jaegermann wrote in <20010606152624.B7150@ellpspace.math.ualberta.ca>:
> 
> Well, do you have /lib/security/pam_stack.so or not?  It is present at
> least in pam-0.72-20.6.x which is the current update for PAM package and
> 6.x systems.
> 
> > This is a rh6.1 box, and I don't think I've changed any pam-related stuff.
> 
> You probably should.  There were updates posted for PAM.

Bingo!  I upgraded PAM, and now ssh works.
Thanks to Michal and Mike.

--
Bryan Medsker
bryan@ak.net




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-06-07 10:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-06  9:38 OpenSSH compile bryan
2001-06-06 16:36 ` Mike Tibor
2001-06-06 17:03   ` Michal Jaegermann
2001-06-06 19:52     ` bryan
2001-06-06 21:26       ` Michal Jaegermann
2001-06-07 10:33         ` bryan

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